1
0
Fork
You've already forked Zephyr
0
forked from drex_vk/serweb
A HTTP server written in C
  • C 90.4%
  • HTML 4.8%
  • CMake 3.3%
  • Python 1.5%
Find a file
2026年05月25日 17:47:03 +02:00
content content 2026年05月25日 20:28:23 +05:00
scripts SerWeb v1.2 add php-cgi, fix bugs, add hashs, logs, config 2026年05月24日 12:41:57 +05:00
src project rename, add some files, config update 2026年05月25日 20:27:18 +05:00
www fix gitignore 2026年05月21日 20:04:29 +02:00
.gitignore fix gitignore 2026年05月21日 20:04:29 +02:00
CMakeLists.txt project rename, fetch with imm 2026年05月25日 20:24:26 +05:00
LICENSE SerWeb v1.2 add php-cgi, fix bugs, add hashs, logs, config 2026年05月24日 12:41:57 +05:00
README.md README change 2026年05月25日 17:47:03 +02:00

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

  1. For site hosting, located at /var/zephyr
  2. 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

  1. C compiler like gcc that support C11+ standard
  2. CMAKE v3.14 for build project
  3. libmicrohttpd dev
  4. json-c library