Another auth/location question - probably very simple to fix :)

Igor Sysoev is at rambler-co.ru
Sat Aug 16 12:13:12 MSD 2008


On Sat, Aug 16, 2008 at 01:00:40AM -0700, mike wrote:

> On 8/16/08, Igor Sysoev <is at rambler-co.ru> wrote:
> 
> > But the better way is disable regex searches:
> >
> > - location /wordpress/admin {
> > + location ^~ /wordpress/admin {
> 
> that breaks the php parsing inside of wp-admin... i need PHP to still
> parse inside of the protected directory, i have this inside of that
> block:
> 
> location ~ \.php$ {
>    fastcgi_pass 127.0.0.1:11000;
>    fastcgi_index index.php;
> }

"^~" does not disable regex for inclusive location.
It disables regex locations of the the same level only.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list