adding /etc/httpd.conf example for shaarli
This commit is contained in:
commit
6e9ce4411b
|
@ -0,0 +1,49 @@
|
|||
# /etc/httpd.conf example for shaarli installation on OpenBSD
|
||||
|
||||
types {
|
||||
include "/usr/share/misc/mime.types"
|
||||
}
|
||||
|
||||
SERVERNAME = url.of.server
|
||||
DIRNAME = chrooted/path/to/files
|
||||
|
||||
server "$SERVERNAME" {
|
||||
listen on * port 80
|
||||
|
||||
location "/.well-known/acme-challenge/*" {
|
||||
root "/acme"
|
||||
request strip 2
|
||||
}
|
||||
|
||||
location "/tpl/*" {
|
||||
root "/$DIRNAME/"
|
||||
}
|
||||
|
||||
location "/cache/*" {
|
||||
root "/naugess.net/linkbox/"
|
||||
}
|
||||
|
||||
location "/doc/*" {
|
||||
root "/$DIRNAME/"
|
||||
}
|
||||
|
||||
location "*.php" {
|
||||
fastcgi socket "/run/php-fpm.sock"
|
||||
root "/$DIRNAME"
|
||||
}
|
||||
|
||||
location "*index.php*" {
|
||||
root "/$DIRNAME"
|
||||
fastcgi socket "/run/php-fpm.sock"
|
||||
}
|
||||
|
||||
location match "/(.*)" {
|
||||
request rewrite "/index.php%1"
|
||||
}
|
||||
|
||||
location "/*" {
|
||||
root "/$DIRNAME"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue