####################################################################### ## For more examples check: ## ## https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Configuration ## $HTTP["host"] == "demo.example.com" { var.server_name = "demo.example.com" server.name = server_name $HTTP["url"] =~ "^/data/" { url.access-deny = ("") } url.rewrite-if-not-file = ( "" => "/index.php?_url=${url.path}${qsa}") url.access-deny = ( "~", "htaccess", "htpasswd", "ini", "log", "sh", "inc", "bak", "twig", "sql" ) server.document-root = vhosts_dir + "/demo.example.com/htdocs/" accesslog.filename = log_root + "/" + server_name + "/access.log" server.errorlog = log_root + "/" + server_name + "/error.log" } $SERVER["socket"] == "0.0.0.0:443" { server.name = "localhost" ssl.privkey= "/etc/lighttpd/ssl/key.pem" ssl.pemfile= "/etc/lighttpd/ssl/cert.pem" ssl.engine = "enable" server.document-root = vhosts_dir + "/demo.example.com/htdocs/" } #######################################################################