[Lvlug] restricting webserver access
Faber Fedor
faber at linuxnj.com
Thu Sep 8 12:01:08 EDT 2005
I'm trying to restrict access to a webserver. Specifically, I only want
access to the root dir (/var/www/html) from 127.0.0.1. So I go into
/etc/httpd/conf/httpd.conf and change the entry from this
<Directory "/var/www/html">
...snip...
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
to this
#
# Controls who can get stuff from this server.
#
Order allow,deny
Deny from all
Allow from 127.0.0.1
</Directory>
And it doesn't work. Access is denied from EVERYWHERE, including
127.0.0.1.
I've tried using SetEnvIf, I've used regexes in the "Allow From", I've
tried .htaccess files, nothing works.
If I comment out the "Deny from all" I can get access (from everywhere,
unfortunately) so I know the changes are being read.
There are no related entries in access_log nor error_log.
WTF?
--
Regards,
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701
http://www.linuxnj.com
More information about the Lvlug
mailing list