adding /etc/httpd.conf example for shaarli

This commit is contained in:
Russ Sharek 2024-01-25 14:22:00 -05:00
commit 6e9ce4411b
1 changed files with 49 additions and 0 deletions

49
etc/shaarli-httpd.conf Normal file
View File

@ -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"
}
}