Skip to content

Commit

Permalink
cleaning and adding a readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AyoubMaatouch committed Jun 30, 2022
1 parent e7f7f4c commit f723ddc
Show file tree
Hide file tree
Showing 225 changed files with 45 additions and 94,806 deletions.
45 changes: 45 additions & 0 deletions Readme.md
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.
27 changes: 0 additions & 27 deletions webserver/basic-php-website/README.md

This file was deleted.

45 changes: 0 additions & 45 deletions webserver/basic-php-website/catalog.php

This file was deleted.

Loading

0 comments on commit f723ddc

Please sign in to comment.