forked from drex_vk/serweb
A HTTP server written in C
- C 90.4%
- HTML 4.8%
- CMake 3.3%
- Python 1.5%
| content | content | |
| scripts | SerWeb v1.2 add php-cgi, fix bugs, add hashs, logs, config | |
| src | project rename, add some files, config update | |
| www | fix gitignore | |
| .gitignore | fix gitignore | |
| CMakeLists.txt | project rename, fetch with imm | |
| LICENSE | SerWeb v1.2 add php-cgi, fix bugs, add hashs, logs, config | |
| README.md | README change | |
Zephyr
About Zephyr
Zephyr is a lightweight http server was written in C with libmicrohttpd
Features
- Configuration
- Logs
- Security
- PHP-CGI
Install
git clone https://codeberg.org/gnom2949/Zephyr.git
cd Zephyr
mkdir build && cd build
cmake ..
make
sudo make install
Docs
Zephyr has 2 dirs
- For site hosting, located at /var/zephyr
- For configuration and server's runtime
The configuration is json file with only 3 keys. Lookup :
{
"webroot": "/var/zephyr/www/"
"port": 8080
"template": "/etc/zephyr/listing/template.html"
}
Located at /etc/zephyr/zephyr.json
requirement
- C compiler like gcc that support C11+ standard
- CMAKE v3.14 for build project
- libmicrohttpd dev
- json-c library