Shorten OpenHTTPD example

FossilOrigin-Name: 3a32415027a7411ca7daac0f6b53261c4b20acf81005c9ef3196e04a36ce3298
This commit is contained in:
nekobit 2023-06-01 00:53:34 +00:00
parent 87586c6060
commit d4cd539019
1 changed files with 5 additions and 8 deletions

View File

@ -1,10 +1,7 @@
server "default" {
listen on * port 80
root "htdocs/treebird"
location "/*\.css" { root "htdocs/treebird" }
location "/*\.png" { root "htdocs/treebird" }
location "/js/*\.js" { root "htdocs/treebird" }
location "/*" {
fastcgi socket tcp localhost 4008
}
listen on * port 80
location match "/(.+).([pc]?[nsj][sg])" { root "htdocs/treebird" }
location match "^/.*$" {
fastcgi socket tcp localhost 4008
}
}