Welcome! Log In Create A New Profile

Advanced

Re: Allow and Deny IP's

February 07, 2018 03:14PM
I find that add_header always works well to verify that the location is being chosen the way you think.

Try something like

add_header X-NGINX-Route <foobar> always;

to some of your location blocks and specify different distinct values for <foobar>.

Then in your browser you can use F12 tools to verify that you are getting back the header you expected.

Jason


-----Original Message-----
From: nginx [mailto:nginx-bounces@nginx.org] On Behalf Of Ph. Gras
Sent: Wednesday, February 07, 2018 12:29 PM
To: nginx@nginx.org
Subject: [IE] Re: Allow and Deny IP's

Hi Francis,

>> location ~* wp-login\.php$ {
>
>> 185.124.153.168 - - [05/Feb/2018:21:36:12 +0100] "GET /wp-login.php HTTP/1.1" 200 1300 "-" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0"
>
>> Me too :-(
>
> Have you any reason to believe that this location is used to handle this request?

Yes, and this especially since before, it worked as expected :-(

>
> $ nginx -T | grep 'server\|location'
>
> will possibly give a useful hint in that direction.

# nginx -T | grep "www.example.com/wp-login.php"
nginx: invalid option: "T"

Is something missing ?

# apt-show-versions | grep nginx
nginx:all/jessie 1.6.2-5+deb8u5 uptodate nginx-common:all/jessie 1.6.2-5+deb8u5 uptodate nginx-full:amd64/jessie 1.6.2-5+deb8u5 uptodate python-certbot-nginx:all/jessie-backports 0.10.2-1~bpo8+1 uptodate

Thank your for your help,

Ph. Gras
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

This message contains proprietary information from Equifax which may be confidential. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e-mail postmaster@equifax.com. Equifax® is a registered trademark of Equifax Inc. All rights reserved.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Allow and Deny IP's

Kaushal Shriyan February 05, 2018 01:28PM

Re: Allow and Deny IP's

ph.gras February 05, 2018 07:04PM

Re: Allow and Deny IP's

Kaushal Shriyan February 06, 2018 09:58AM

Re: Allow and Deny IP's

Francis Daly February 06, 2018 06:58PM

Re: Allow and Deny IP's

ph.gras February 07, 2018 01:30PM

Re: Allow and Deny IP's

Francis Daly February 08, 2018 03:26AM

Re: Allow and Deny IP's

Francis Daly February 06, 2018 07:04PM

Re: Allow and Deny IP's

Kaushal Shriyan February 07, 2018 11:28AM

Re: Allow and Deny IP's

Francis Daly February 07, 2018 11:38AM

Re: Allow and Deny IP's

jasonw February 07, 2018 03:14PM

Re: Allow and Deny IP's

ph.gras February 07, 2018 05:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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