Files
FOSSBilling/data/lighttpd.conf
T
Belle Aerni 44c7f6f405 Create an alias for bb-ipn (#605)
* Create an alias for bb-ipn

* Slight tweak

* Updated docker config
2022-12-19 12:05:30 -08:00

32 lines
1.2 KiB
Plaintext

#######################################################################
## 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/"
}
# Setup an alias from bb-ipn to ipn.php for those who have upgraded from BoxBilling.
alias.url = ( "/bb-ipn.php" => "/ipn.php" )
#######################################################################