Non-root install of Wordpress in an already running nginx site

Cliff Wells cliff at develix.com
Wed Apr 11 01:47:46 UTC 2012


On 04/10/2012 05:22 PM, Ian M. Evans wrote:
> On Tue, April 10, 2012 8:02 pm, Edho Arief wrote:
>> location /ournewblog/ {
>>    root ...;
>>    try_files $uri /ournewblog/index.php?q=$uri;
>>    location ~ \.php$ {
>>      fastcgi_pass ...
>>      ...
>>    }
>> }
>>
>> Hopefully you don't have regex based location on server { } block.
>> Otherwise you can try location ~ ^/ournewblog/ instead.
> I've always been a bit unsure of handling nginx locations so how can I
> tell if I have a "regex based location"?


http://nginx.org/en/docs/http/request_processing.html

Regards,
Cliff



More information about the nginx mailing list