Lighttpd
Aprenda a configurar o Inphinit em servidores Lighttpd.
Configurando módulos
Primeiro coloque os módulos que faltam
server.modules = (
"mod_indexfile",
"mod_access",
"mod_rewrite",
)
Host de configuração
Edite lighttpd.conf, ou se existir a pasta conf-enabled, crie um arquivo como example.conf, exemplo:
cd /caminho/para/lighttpd/conf-enabled
touch exemplo.conf
E coloque $HTTP["host"] em lighttpd.conf ou example.conf, assim:
$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" )
}