Case:
I want to host a small private webpage on a OpenBSD 6, using httpd and have a cms for easy editing.
I have tried
Reading manual for httpd, and httpd.conf
Searching this forum. Searching google.
I have tried installing wolfcms, bolt cms, an drupal cms. With wget and unzip to folder.
All give me the front page, but gives 404 error for subpages.
Drupal, goes trough several installation pages, and pass requirement check. But after successful setup, only shows frontpage, other pages gives 404.
Googling indicated some had errors related to this on Apache, with mod_write and or .htacces.
httpd.conf with fictive mydomain,com :
Code:
ext_if="egress"
types { include "/usr/share/misc/mime.types" }
server "default" {
listen on $ext_if port 80
directory {index "index.php" }
location "/*.php" {
root { "/htdocs/mydomain.com/public" }
fastcgi socket "/run/php-fpm.sock"
}
location "/*" {
root { "/htdocs/mydomain.com/public" }
}
}