[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] user and password files!!
- Subject: RE: [cobalt-users] user and password files!!
- From: Sales - Way to the Web <sales@xxxxxxxxxxxxxxx>
- Date: Wed Oct 18 14:05:38 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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