View previous topic :: View next topic |
Author |
Message |
Joseph_sys Advocate

Joined: 08 Jun 2004 Posts: 2716 Location: Edmonton, AB
|
Posted: Tue Mar 27, 2007 8:33 pm Post subject: [SOLVED] Apach allow deny directive for cgi directory |
|
|
I'm trying to deny anybody except localhost to access cgi-bin directory and I'm a bit confused in this scenario:
In the example below I'm able to access the directory
Code: | <Directory "/var/www/localhost/cgi-bin/">
AllowOverride None
Options None
Order allow,deny
Allow from 127.0.0.1
</Directory> |
Below I just added "Deny from all" as it would seem natural to deny first everybody and allow localhost but I am not allow to access it, why?
Code: | <Directory "/var/www/localhost/cgi-bin/">
AllowOverride None
Options None
Order allow,deny
Deny from all
Allow from 127.0.0.1
</Directory> |
Last edited by Joseph_sys on Tue Mar 27, 2007 8:59 pm; edited 1 time in total |
|
Back to top |
|
 |
deface Apprentice


Joined: 17 Mar 2007 Posts: 205
|
|
Back to top |
|
 |
Joseph_sys Advocate

Joined: 08 Jun 2004 Posts: 2716 Location: Edmonton, AB
|
Posted: Tue Mar 27, 2007 8:59 pm Post subject: |
|
|
deface wrote: | Order allow,deny
to
Order deny,allow |
Thanks, I new it is simple :-/ |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|