Welcome! Log In Create A New Profile

Advanced

RE: access error?

Glen Lumanau
April 27, 2009 06:51AM
Tried this but not works aswell L



From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of AMP
Admin
Sent: 23 April 2009 11:33
To: nginx@sysoev.ru
Subject: RE: access error?



It's only looking at the directory but not the files. Notice the .* in the
following example and the php handling.



Example:

## Protect

location ~ /(directory1/| directory2/| directory3).* {

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

include fastcgi_params;

allow 1.1.1.1;

allow 2.2.2.2;

deny all;

}



From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of Glen
Lumanau
Sent: Wednesday, April 22, 2009 11:03 PM
To: nginx@sysoev.ru
Subject: access error?



location /administrator/ {

allow 1.1.1.1;

allow 2.2.2.2;

deny all;



I tried to use that configuration. If someone accessing
www.domain.com/administrator/ it's forbidden.

But if someone accessing www.domain.com/administrator/index.php they can
execute it



Is there somethink I've missed?
Subject Author Posted

access error?

Glen Lumanau April 23, 2009 12:02AM

RE: access error?

AMP Admin April 23, 2009 12:32AM

RE: access error?

Glen Lumanau April 27, 2009 06:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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