lighttpd [-ptDvVh] -f configfile [-m moduledir]
lighttpd (pronounced 'lighty') : secure, fast, compliant and very flexible. Optimized for high performance. Includes: FastCGI, CGI, basic and digest HTTP authentication, output compression, URL rewriting.
To configure lighttpd and its modules see the doc-directory.
-f configfile configuration file -m moduledir directory that contains modules, instead of the default. -p Print the parsed configuration file in its internal form and exit. -t Test the configuration file for syntax errors and exit. -D Do not daemonize (go into background). The default is to daemonize. -v Show version and exitA On raspberry pi as of 2/10/18: lighttpd/1.4.31 (ssl) - a light and fast webserver Build-Date: Aug 2 2016 22:25:17 -V Show compile-time features and exit. Build-Date: Aug 2 2016 22:25:17 Event Handlers: + select (generic) poll (Unix) epoll (Linux 2.6) - rt-signals (Linux 2.4+) /dev/poll (Solaris) eventports (Solaris) kqueue (FreeBSD) libev (generic) Network handler: + linux-sendfile writev write - mmap support freebsd-sendfile solaris-sendfilev Features: + IPv6 zlib bzip2 crypt SSL PCRE mySQL LDAP FAM LUA xml SQLite GDBM - memcached -h Show a brief help message and exit.
/etc/lighttpd/lighttpd.conf server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_redirect", # "mod_rewrite", ) server.document-root = "/var/www" server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) server.errorlog = "/var/log/lighttpd/error.log" server.pid-file = "/var/run/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" server.port = 80 index-file.names = ( "index.php", "index.html", "index.lighttpd.html" ) url.access-deny = ( "~", ".inc" ) static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) compress.cache-dir = "/var/cache/lighttpd/compress/" compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" ) # default listening port for IPv6 falls back to the IPv4 port include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port include_shell "/usr/share/lighttpd/create-mime.assign.pl" include_shell "/usr/share/lighttpd/include-conf-enabled.pl" /var/run/lighttpd.pid sudo /etc/init.d/lighttpd status sudo /etc/init.d/lighttpd stop sudo /etc/init.d/lighttpd startSEE lighttpd.net spawn-fcgi(1) Hypertext Transfer Protocol -- HTTP/1.1, RFC 2616. HTTP Authentication: Basic and Digest Access Authentication, RFC 2617. The Common Gateway Interface Version 1.1, RFC 3875. The FastCGI specification.