https://github.com/dr-noob/swebs
Simple Web Server
https://github.com/dr-noob/swebs
Last synced: about 2 months ago
JSON representation
Simple Web Server
- Host: GitHub
- URL: https://github.com/dr-noob/swebs
- Owner: Dr-Noob
- Created: 2018-09-04T11:34:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T21:56:11.000Z (about 7 years ago)
- Last Synced: 2025-02-01T12:28:43.661Z (8 months ago)
- Language: C
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swebs
Simple web server -- Simple HTTP server on your local machine.## Usage
**./swebs [--port=PORT] [--dir=DIR] [--log=DIR] [--help]**
| Option | Description | Type |
|:---------:|:-----------------------------------------------------------------------:|:--------------------:|
| --port | Port in which swebs will be listening for incomming connections | Optional(Default:80) |
| --dir | Directory that will be used as root directory to swebs to serve files. | Optional(Default: .) |
| --log | Directory that will be used to save swebs log file. | Optional(Default: .) |
| --help | Prints help and exit | Optional |_Please note that for certain ports(e.g, 80) you will need root permissions_
## Features
* **GET method**: swebs just supports HTTP GET method
* **Multithreading**: swebs will launch a new thread to process each request separately, using _pthreads_
* **Logging**: swebs will write to a log file(located in the directory specified with _--log_ or at '.' if not directory was specified)