OpenBSD Dokuwiki Wiki with HTTPD

OpenBSD httpd Dokuwiki

The code below assumes you have basic knowledge of httpd and have php setup as fpm server

server “wiki.unix.beer” { listen on * tls port 443 root “/htdocs/wiki” tls { certificate “/etc/ssl/wiki” key “/etc/ssl/private/wiki” }

location "/*.inc"	{ block }
    location "/*.ht*"	{ block }
    location "/data/*"	{ block }
    location "/conf/*"	{ block }
    location "/bin/*"	{ block }
    location "/inc/*"	{ block }
    location "/vendor/*"	{ block }
	location "/robots.txt"                  { pass }
location "/htdocs/wiki" {
	directory auto index
}
location "*" {
	fastcgi socket "/run/php-fpm.sock"
}

directory index index.php
location "/.well-known/acme-challenge/*" {
	root "/acme"
	request strip 2
}

}

(Unix/Beer/about) %

A Unix hobbiest website


A brief description of Hugo Shortcodes

By Hugo Authors, 2025-09-22