Welcome! Log In Create A New Profile

Advanced

Re: Configuration help needed

Ian Hobson
August 02, 2009 06:51AM
Cracked it!

The key was the location line to match directories - having matched
/blog/??? and rewritten to /blog/index.php?q=??? I then could leave
it to the raw php location to handle, however....

The location to catch directories was being triggered. I needed to have
the location match all directories except /blog/

Digging out my regex manuals, I discovered this incantation was required.

location ~ ^/(?!blog)(.*)/$ {

Works like a charm :)

Ian
Subject Author Posted

Configuration help needed

Ian Hobson July 31, 2009 10:05AM

Re: Configuration help needed

Ian Hobson August 02, 2009 06:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 321
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready