User Tools

Site Tools


httpd_dokuwiki

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
	}
}
httpd_dokuwiki.txt · Last modified: by chris

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki