1
0
mirror of https://github.com/Rouji/single_php_filehost.git synced 2025-04-05 08:59:34 +00:00
single_php_filehost/lighttpd.conf
2021-12-13 15:54:58 +05:00

27 lines
539 B
Plaintext

server.document-root = "/var/www/"
server.port = 80
server.username = "www-data"
server.groupname = "www-data"
include "mod_fastcgi.conf"
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"
)
static-file.exclude-extensions = (".php")
index-file.names = ("index.php")
server.modules += ( "mod_rewrite" )
url.rewrite = (
"^/?$" => "/index.php",
"^/(.*)$" => "/files/$1"
)