httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Stevenson <t...@pc-tony.com>
Subject Re: [users@httpd] htaccess and htpasswd
Date Tue, 07 Aug 2007 22:39:01 GMT
Mandy Singh wrote:
> Hello Everyone,
> 
> On my website, I have content served off webroot.
> 
> site1.example.com <http://site1.example.com>
> site2.example.com <http://site2.example.com>
> site3.example.com <http://site3.example.com>
> 
> All point to the same doc root.
> 
> I want to passwd protect site1.example.com <http://site1.example.com> 
> but not the others (but they are served off the same directory)
> 
> How can I do that using apache?

Add your config to your httpd.conf file. Try to avoid using .htaccess 
files if you can.

Look at this page for an idea of how you can do this

http://wiki.apache.org/httpd/PasswordBasicAuth




Mime
View raw message