php - Setting up lighttpd to run Wallabag -
i trying set-up lighttpd have vhost pointing @ wallabag installation. have not made many changes default lighttpd.conf apart change server.document-root "/var/www/wallabag/web". settings when accessing server ip idex of files contained in /wallabag/web rather automatically loading app.php. if click app.php app load fine , work, wanting have load default.
if change lighttpd.conf include app.php in index-file.names 404 - not found error. reason appears tries load myserver.example/login whereas other configuration goes myserver.example/app.php/login.
i assuming there minor missing settings can't find answer when searching.
for reference raspberry pi 2 jessie version of raspbian lighttpd installed on.
thanks in advance or suggestions.
managed work out solution:
server.modules = ( "mod_fastcgi", "mod_access", "mod_alias", "mod_compress", "mod_redirect", "mod_rewrite", ) server.document-root = "/var/www/wallabag/web" 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 server.follow-symlink = "enable" 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" ) 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" dir-listing.activate = "disable" url.rewrite-if-not-file = ( "^/([^?])(?:\?(.))?" => "/app.php?$1&$2", "^/([^?]*)" => "/app.php?=$1", "^/wiki$" => "/app.php", )
Comments
Post a Comment