Welcome! Log In Create A New Profile

Advanced

Re: Location directive causing a redirect?

W. Andrew Loe III
September 21, 2010 01:28PM
Thank you!

This is actually the behavior I want, I wanted to confirm my
configuration was correct and that it wasn't happening for some other
reason which I might randomly break.

On Tue, Sep 21, 2010 at 1:45 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:
> Hello!
>
> On Mon, Sep 20, 2010 at 08:49:13PM -0700, W. Andrew Loe III wrote:
>
>> Using the following configuration, causes a request for
>> domain.com/blog to 301 to domain.com/blog/ even with debug on error
>> log I cannot see where this is happening in nginx.
>>
>>     location ^~ /blog/ {
>
> [...]
>
>>       proxy_pass http://blog;
>>     }
>
> Locations ending with '/' with proxy_pass (fastcgi_pass, ...) will
> do implicit directory like redirect ("/blog" -> "/blog/").  Grep
> for 'auto_redirect' in sources.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Location directive causing a redirect?

W. Andrew Loe III September 20, 2010 11:52PM

Re: Location directive causing a redirect?

Maxim Dounin September 21, 2010 04:50AM

Re: Location directive causing a redirect?

W. Andrew Loe III September 21, 2010 01:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
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