User Tools

Site Tools


httpd_dokuwiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

httpd_dokuwiki [2024/05/27 05:24] – created chrishttpd_dokuwiki [2026/02/08 02:37] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== OpenBSD httpd Dokuwiki ======
 +The code below assumes you have basic knowledge of httpd and have php setup as fpm server
  
 +<code>
 +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
 + }
 +}
 +</code>

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