Re: htaccess and htpasswd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tony,

Yes I needed to move stuff to the httpd.conf file, but still how does one do domain level password protection. Your example is directory level password protection that would apply to all Virtual Hosts.

Any idea on domain level?

Thanks.

On 8/8/07, Tony Stevenson <tony@xxxxxxxxxxx> wrote:
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






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux