httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Huth" <>
Subject [users@httpd] Sample Httpd.conf
Date Mon, 06 Dec 2004 05:15:57 GMT
I'm struggling through my first setup of Apache 1.x.  I'm using Debian and
I've a working website up and running.  

However, I'd like to restrict public access to only one directory, while
allowing private access to users only behind our firewalls.

I tried the following in the main directory section of httpd.conf:

# Controls who can get stuff from this server.
    Order deny,allow
    Allow from 192.168.x.x
    Allow from
    Allow from
    Deny from all

But all one had to do was type a subdirectory name from a public server and they were.

I'd think that this should be easy, but even with copies of a couple of
books on Apache I don't seem to be able to access the magic incantations!
Could someone send me a sample snippet of httpd.conf which will allow me to
restrict access?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message