====== OpenBSD httpd and GravCMS ====== This article does not give directions on how to enable php the system assumes you have done this already the code for httpd.conf using a default config is server "blog" { listen on * tls port 443 root "/htdocs/blog" tls { certificate "/etc/ssl/" key "/etc/ssl/private/" } # assets location "*.html" { pass } location "*.css" { pass } location "*.js" { pass } location "*.jpg" { pass } location "*.jpeg" { pass } location "*.png" { pass } location "*.webp" { pass } location "*.gif" { pass } location "*.mp4" { pass } location "*.woff" { pass } location "*.woff2" { pass } location "*.ttf" { pass } # robots.txt location "/robots.txt" { pass } location "/htdocs/blog" { directory auto index } location "*" { root "/htdocs/blog/index.php" fastcgi socket "/run/php-fpm.sock" } directory index index.php location "/.well-known/acme-challenge/*" { root "/acme" request strip 2 } }