Hey guys, For anyone banging their head against the wall trying to get
Wordpress 'pretty' permalinks working with httpd request rewrite, here's
an alternative. All credits go to Ve Telko and his post
(https://marc.info/?l=openbsd-misc&m=152996292328684&w=2) that steered me
in the right direction.With setting permalinks to a custom structure of
"http://example.com/%post_id%/"; and using index.php as the document root
for the matched requests, the requests get passed correctly. httpd.conf
(httpd and php-fpm chrooted to /var/www, Wordpress installed in
/var/www/wordpress):server "example.com" {
listen on 127.0.0.1 port 80
root "/wordpress"
directory index index.php location "/*.php" {
fastcgi socket "/run/wordpress.sock"
} location match "/(.*)" {
root "/wordpress/index.php"
fastcgi socket "/run/wordpress.sock"
} log access wordpress-access.log
log error wordpress-error.log
} If anyone managed to solve this using the request rewrite option, I'd
be delighted to find out how.Regards.

Reply via email to