User Tools

Site Tools


httpd_gravcms

Differences

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

Link to this comparison view

httpd_gravcms [2024/05/27 05:21] – created chrishttpd_gravcms [2026/02/08 02:37] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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
 +
 +<code>
 +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
 + }
 +}
 +</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