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

RE: [cobalt-users] user and password files!!



Hello Steve,

> 1) Can I include an .htaccess file which uses the main 
> password list for the
> server for authorisation, if so does this maybe cause a 
> security problem???

Yes, do NOT use the "AuthPAM_Enabled off" option in the .htaccess file.
Users will now be authenticated using server security.

> 2) when they have logged in, is there a way to find out what 
> domain name the username is linked to?

You can interrogate the environment variable HTTP_HOST. If you're using
Perl, you'd get at this using:

$this_server = %ENV{HTTP_HOST};

Regards,
Jonathan Michaelson

Way to the Web Ltd
Commercial CGI Scripting, Web Hosting
http://www.waytotheweb.com