External Redirect when expecting internal redirect

2013-03-10 Thread Thomas Glanzmann
Hello, I'm running nginx 1.2.1-2.2 on Debian Wheezy (testing). I try to obtain the following: Depending on the subnet accessing either rewrite internally to a cgi script or to a static Website. For the cgi script that works perfectly fine, for the static web site nginx always does a HTTP 301

Re: External Redirect when expecting internal redirect

2013-03-10 Thread Francis Daly
On Sun, Mar 10, 2013 at 01:30:22PM +0100, Thomas Glanzmann wrote: Hi there, Depending on the subnet accessing either rewrite internally to a cgi script or to a static Website. For the cgi script that works perfectly fine, for the static web site nginx always does a HTTP 301 instead of an

Re: External Redirect when expecting internal redirect

2013-03-10 Thread Thomas Glanzmann
Hello Francis, * Francis Daly fran...@daoine.org [2013-03-10 13:57]: You can use an internal rewrite to a file, provided that you actually rewrite to a file. Here, you rewrite to a directory without including the trailing /. I wanted to rewrite to a directory. I see my mistake now and it