httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
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 *>
    ServerName www.business.tld
    ...
</VirtualHost>

<VirtualHost *>
    ServerName intranet.business.tld
    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
        ...
    </Directory>
    ....
</VirtualHost>

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


Regards,
Robert Andersson




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message