1
0
mirror of https://github.com/Rouji/single_php_filehost.git synced 2025-04-05 17:09:34 +00:00
single_php_filehost/lighttpd.conf
2021-12-12 15:51:13 +05:00

27 lines
599 B
Plaintext

server.document-root = "/var/www/"
server.port = 80
server.username = "www-data"
server.groupname = "www-data"
mimetype.assign = (
".html" => "text/html",
".htm" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png",
".gif" => "image/gif",
".ico" => "image/vnd.microsoft.icon"
)
include "mod_fastcgi.conf"
static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc" )
index-file.names = ( "index.html", "index.htm" , "index.php")
server.modules += ( "mod_rewrite" )
url.rewrite = (
"^/?$" => "/index.php",
"^/(.*)$" => "/files/$1"
)