Site of use Facows: dev.facooya.com.
- Originaly
facooya.com(www.facooya.com), but have not content. So please go to thedev.facooya.com.
Limitations
- Linux only.
- Only SSL, must have SSL certificate and private key.
- Not support PHP, only static files.
- Only HTTP
1.1. - Using
poll. - Only html extendsion for clean url, but forced.
- Not support upload/download for large files.
- If subdomain
abc, must directory name is/WEB_ROOT/abc.
Features
- Support configuration file.
- Support regist to system daemon.
- If NFT true in conf file, ip ban of dos or flood attack.
- URL redirect from http to https.
- Redirect html extenstion for clean url.
Implementations
- The
poll. -
- Must upgrade will
epoll, may upgrade willio_uring.
- Must upgrade will
- Kernel TLS, The
kTLS. -
- If fail kernel TLS, convert to user-space TLS.
- Web root:
/var/www/facows/ - Log:
/var/log/facows/ - Configure:
/etc/facows/
sudo apt update
sudo apt install git make libssl-dev nftables libnftables-devgit- For thegit clonemake- Build for facowslibssl-dev- Open ssl library in Cnftables- Network filter for IP banlibnftables-dev- Network filter library in C
Register nftables to systemd:
sudo systemctl enable nftables
sudo systemctl start nftablesCheck for kTLS
Openssl version over than 3.0.4.
Linux kernel version over than 5.6.
kTLS:
# Check
lsmod | grep tls
# Enable
sudo modprobe tlsBuild
git clone https://github.com/facooya/facows.git
cd facows
make
sudo make installConfiguration
Warning
If NFT configuration true, deny all port except Facows port defined by /etc/facows/facows.conf.
Enable ALLOW_PORTS and write allow port in /etc/facows/facows.conf.
Modifiy /etc/facows/facows.conf domain and SSL path.
- Log not support yet.
Execute Manual:
sudo ./build/facowsSystem daemon:
sudo systemctl enable facows
sudo systemctl start facowsExit
Manual:
Program exit ctrl + c or kill PID.
Warning
Must not kill -9 PID. If already used and NFT true in /etc/facows/facows.conf, try sudo nft table delete netdev facows; sudo nft table delete inet facows for network.
System daemon:
sudo systemctl stop facowsUninstall
sudo make uninstallManual path:
/usr/local/bin/facows # For 'ExecStart' path in 'systemd'.
/etc/systemd/system/facows.service # For 'systemd'.
/etc/facows/ # For configuration to 'Facows'.
/usr/share/facows/ # For error pages.
/var/www/facows/ # For example pages.Upgrade System deamon:
sudo systemctl stop facows
make
sudo make install
sudo systemctl restart facowsIf chagned:
sudo systemctl restart facows- Create SSL Certificate SSL
FWS: Facooya Web Server
FACOWS: FACOoya Web Server
Maintained by Facooya and Fanone Facooya, 2026