Muhammad Yousuf Khan
April 18, 2016 09:40AM
Thanks alot Francis Daly :). the try_file option worked for me and location
tip also worked but try_file seems more better approach.

Btw, can you please explain this paragraph. actually i am really sorry for
this newbie type question. actually i have been working as ssytem admin for
last 5 years. now my Firewall concepts of rules are collapsing with nginx
rules.

>location /x { rewrite ^ /x.html redirect; }
>fails because "location /x" will match /x.html, so the second request
>will match the same location as the first one and the same redirect will
>happen again; and one way to avoid the loop is to make the "location"
>only match exactly "/x".
>Based on that, can you guess what the "~" in

can you please explain how the second request creates the loop. if i use
break instead of redirect?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Redirection problem again in new rules.

Muhammad Yousuf Khan April 14, 2016 10:04AM

Re: Redirection problem again in new rules.

ph.gras April 14, 2016 11:20AM

Re: Redirection problem again in new rules.

Francis Daly April 14, 2016 01:06PM

Re: Redirection problem again in new rules.

Muhammad Yousuf Khan April 15, 2016 03:28AM

Re: Redirection problem again in new rules.

Francis Daly April 15, 2016 12:38PM

Re: Redirection problem again in new rules.

Muhammad Yousuf Khan April 16, 2016 03:24AM

Re: Redirection problem again in new rules.

Francis Daly April 16, 2016 08:38AM

Re: Redirection problem again in new rules.

Muhammad Yousuf Khan April 18, 2016 09:40AM

Re: Redirection problem again in new rules.

Francis Daly April 18, 2016 07:24PM

Re: Redirection problem again in new rules.

Muhammad Yousuf Khan April 20, 2016 06:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready