Lighttpd
Hi,
I have problem with Fork-cms on my Debian Server. I am using lighttpd as web server.
I setup my lighttpd config file this way:
server.modules = (
"modaccess",
"modalias",
"modcompress",
"modredirect",
"mod_rewrite",
)
server.document-root = "/var/www/html" 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" )
includeshell "/usr/share/lighttpd/use-ipv6.pl " + server.port includeshell "/usr/share/lighttpd/create-mime.assign.pl" include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
dir-listing.activate = "disable"
url.rewrite-if-not-file = ( "^/?$" => "$0", "^/(backend|install|api(\/\d.\d)?(\/client)?)/(.*)" => "/index.php/$0", "^/(?!(backend|install|api(\/\d.\d)?(\/client)?))(.+)/?$" => "/index.php/$0" )
And I could not install Fork CMS (404) so I found information that I can use something like:
url.rewrite = (
"^/(.*).(.+)$" => "$0",
"^/(.+)/?$" => "/index.php/$1"
)
and that works, my installation page inform me that almost everything work fine except my mod rewrite options :( even when I installed fork-cms I could not log in into admin panel, Internal server error.
I think because of modrewite.
Could someone help me? Can someone show me working lighttpd configuration?