Web Servers & Proxies
This category covers web servers and reverse proxies/load balancers.
Web Servers
Apache HTTP Server
Apache HTTP Server is a widely-used web server software.
安装
environment.systemPackages = [ pkgs.apacheHttpd ];
已验证的使用情况
# Start server with a configuration file
httpd -f /tmp/httpd.conf
Caddy
Caddy is a modern web server with automatic HTTPS.
安装
environment.systemPackages = [ pkgs.caddy ];
已验证的使用情况
# Start a file server
caddy file-server --listen 10.0.2.15:8002
Nginx
Nginx is a high-performance web server, reverse proxy, and load balancer.
安装
environment.systemPackages = [ pkgs.nginx ];
已验证的使用情况
# Start server with a configuration file
nginx -c /tmp/nginx.conf
OpenResty
OpenResty is an Nginx-based web platform with LuaJIT support.
安装
environment.systemPackages = [ pkgs.openresty ];
已验证的使用情况
# Start OpenResty with a custom prefix and config
openresty -p /tmp/openresty -c /tmp/openresty.conf