Nginx 1.2.3 Rewrite Issue
nginx at nginxuser.net
Thu Aug 9 14:26:40 UTC 2012
Ha! Got it. I was trying to preserve arguments indeed.
I take it this is related to needing to add a "?" to the end of such
to prevent the args being appended again. Right?
On 9 August 2012 17:20, Maxim Dounin <mdounin at mdounin.ru> wrote:
> On Thu, Aug 09, 2012 at 05:13:53PM +0300, Nginx User wrote:
>> Wierd problem with Nginx 1.2.3 rewrites.
>> See http://pastie.org/4433865 and note Line 30. The arg is part of the
>> main url. Results in a 404 not found as the final url becomes
>> Any cluees
> It's not clear what you are trying to do, but if you just want to
> preserve arguments as is - there is no need to write anything
> extra, just
> rewrite ^/test/index\.html$ /test/index.php last;
> Original request arguments (if any) will be preserved as is.
> Maxim Dounin
> nginx mailing list
> nginx at nginx.org
More information about the nginx