$ sudo apt install lighttpd lighttpd-doc $ sudo apt install build-essential libpcre3-dev zlib1g-dev libbz2-dev $ configure $ make $ sudo make install include "/etc/lighttpd/conf.d/*" include "/etc/lighttpd/vhosts.d/*" lighttpd -t -f /etc/lighttpd/lighttpd.conf sudo systemctl reload lighttpd.service sudo kill -n SIGUSR1 ps -A | grep lighttpd sudo systemctl start lighttpd.service sudo lighttpd -f /etc/lighttpd/lighttpd.conf $HTTP["host"] == "blog.example.org" { server.document-root = var.dir + "/html/blog" } $HTTP["url"] =~ "^/blog/" server.modules = ("mod_openssl") $SERVER["socket"] == ":443" { ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/server.pem" } server.modules = ( "mod_openssl" ) :$ openssl req -new -x509 -keyout /etc/lighttpd/server.pem -out /etc/lighttpd/server.pem-days 365 -nodes server.modules += ("mod_auth", "mod_authn_file") fastcgi.server = ( ".php" => (( "socket" => "/run/php/php-fpm7.4" )) )