Welcome! Log In Create A New Profile

Advanced

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

Aleksandar Lazic
May 19, 2017 07:42PM
Am Fri, 19 May 2017 03:24:43 -0400
schrieb "ohmykot" <nginx-forum@forum.nginx.org>:

> Hi!
> I've got a server with nginx and a wordpress website running on it.

what's the output of nginx -V?

> On the web-site, I have a wordpress page, i.e.
> domain.com/secret-page/, that I want to restrict access to everybody
> but 1 specific IP address of my other server.
>
> As this page is not a real physical directory, but just a friendly
> URL - I got stuck. I don't have previous experience configuring
> nginx, but I tried hard to google the possible solution.
>
> What I tried so far in my website config:
> [code]
> location ~* ^/secret-page/ {
> allow 1.1.1.1;
> deny all;
> }
> [/code]

Where is this code in the nginx conf?

What's in the error log?

Can you try to run the debug log?
http://nginx.org/en/docs/debugging_log.html
An then would be the error log output interesting.

In some distributions is it necessary to run nginx-debug instead of
nginx.


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

How to restrict acces to specific friendly URL by IP in Wordpress site?

ohmykot May 19, 2017 03:24AM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

alexsamad May 19, 2017 05:38PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

gariac May 19, 2017 06:02PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

alexsamad May 19, 2017 06:16PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

Igal @ Lucee.org May 19, 2017 06:22PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

Igal @ Lucee.org May 19, 2017 06:48PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

gariac May 19, 2017 07:04PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

Igal @ Lucee.org May 19, 2017 07:10PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

Igal @ Lucee.org May 19, 2017 05:50PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

ohmykot May 22, 2017 03:24AM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

Aleksandar Lazic May 19, 2017 07:42PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

Francis Daly May 22, 2017 07:10PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

gariac May 22, 2017 07:54PM

Re: How to restrict acces to specific friendly URL by IP in Wordpress site?

Francis Daly May 27, 2017 03:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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