Skip to main content
Github

Lighttpd

Learn how to configure Inphinit on Lighttpd servers.

Configuring modules

First put missing modules in

server.modules = ( "mod_indexfile", "mod_access", "mod_rewrite", )

Setup Host

Edit lighttpd.conf, or if exists conf-enabled folder, create a file like example.conf, example:

cd /path/to/lighttpd/conf-enabled touch example.conf

And put $HTTP["host"] in lighttpd.conf or example.conf, like this:

$HTTP["host"] == "example.com" { # accesslog.filename = "/path/to/access.log" server.document-root = "/home/foo/bar/my-application/public" index-file.names = ( "index.php" ) # Redirect SAPI to errors.php server.error-handler = "/index.php" # Ignore hidden files url.rewrite-once = ( "/\." => "/index.php" ) # Redirect all urls to index.php if no exits files url.rewrite-if-not-file = ( "^" => "/index.php" ) }