Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Apach allow deny directive for cgi directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Tue Mar 27, 2007 8:33 pm    Post subject: [SOLVED] Apach allow deny directive for cgi directory Reply with quote

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
View user's profile Send private message
deface
Apprentice
Apprentice


Joined: 17 Mar 2007
Posts: 205

PostPosted: Tue Mar 27, 2007 8:35 pm    Post subject: Reply with quote

Order allow,deny
to
Order deny,allow
_________________
--
Jeremy
http://www.gentoo-wiki.com - Gentoo How-To/Guide's
http://www.gentoo-portage.com - Where the portage meets the web
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Tue Mar 27, 2007 8:59 pm    Post subject: Reply with quote

deface wrote:
Order allow,deny
to
Order deny,allow


Thanks, I new it is simple :-/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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