httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: [users@httpd] Extranet Server?
Date Mon, 07 Jul 2003 04:32:13 GMT
Joseph A Nagy Jr:
> Well, I have only one NIC available. Wouldn't it be possible using a 
> vhost to set something like this up? I guess all I'm really looking to 
> do is restrict a sub-domain of one of my sites to the intranet.

This could be as simple as:

<VirtualHost *>

<VirtualHost *>
    DocumentRoot /path/to/docroot
    <Directory /path/to/docroot>
        # only allow access from your intranet's IP-range
        Order Deny,Allow
        Deny from all
        Allow from 192.168
        # if you want to allow access from outside, add this:
        AuthType Basic
        AuthName "Business Intranet"
        AuthUserFile /path/to/password-file
        Require valid-user
        Satisfy any

(Look up each directive you're not familiar with)

Robert Andersson

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