forked from AyoubMaatouch/WebServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7f7f4c
commit f723ddc
Showing
225 changed files
with
45 additions
and
94,806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# WebServer | ||
## because reinventing the wheel is an option | ||
### Features: | ||
- HTTP 1.1 compliant | ||
- Never block and client can be bounced properly | ||
- Non-blocking I/O operations | ||
- Listen to multiple IPs | ||
- Listen to multiple ports | ||
- Methods: GET, POST, DELETE | ||
- Able to upload files | ||
- Able to serve a fully static website. | ||
- Supports multipale CGIs. | ||
- Custom error pages | ||
- High availablity | ||
- Resilient! Server never dies :slightly_smiling_face: | ||
- `poll()` as the default event monitor | ||
### Usage | ||
``` bash | ||
$ make -C server/ | ||
$ ./webserver server/webserver.conf | ||
``` | ||
|
||
### Setup Configue file | ||
```yaml | ||
server: | ||
host: 127.0.0.1 | ||
port: 5050 | ||
server_name: example.com | ||
location: | ||
allowed_method: get delete post | ||
path: / | ||
root: /Users/aymaatou/Desktop/WebServer/webserver/public | ||
index: index.html index.php .. | ||
upload: "upload/path" | ||
auto_index: on || off | ||
cgi: | ||
php: "path/to/php-cgi" | ||
py: "path/to/python" | ||
perl: "path/to/perl" | ||
redirection: | ||
status: redirection_code | ||
url: 'url' | ||
error_page: | ||
status_code: costume_error_page.html | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.