Forum Moderators: phranque

Message Too Old, No Replies

.htaccess auth according subdomains

htaccess auth subdomains

         

demoalt

10:30 am on Jul 13, 2005 (gmt 0)



I have many subdomains which points to the same directory (and this directory refers to a software that uses a different database according to the subdomain).

I would like to activate HTTP Auth (box asking for a login/password) only on some subdomains.

How do I do this? Can it be specified in the .htaccess file or does it need to be specify somewhere else.

Thank you all.

jdMorgan

6:44 pm on Jul 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



demoalt,

Welcome to WebmasterWorld!

mod_auth is directory-based, so you'll need to define a separate directory for the subdomains that require it. The alternative is a script-based password system.

Jim