Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple users for multiple domain names

Status
Not open for further replies.

clemrock

Programmer
Joined
May 20, 2004
Messages
118
Location
US
Hello,

I know this is rather simple but I was trying to make to virtual domains to be owned by the same owner. I went to the httpd.conf file and did this:


<virtualhost ScriptAlias /cgi-bin/ /ScriptAlias /cgi-peopledesigns/ /User webmaster
Group peopledesignsgrp
ServerAdmin webmaster@peopledesigns.net
ServerName ErrorDocument 404 /missing.html
DocumentRoot /TransferLog logs/peopledesigns-access-log
</virtualhost>


<virtualhost ScriptAlias /cgi-bin/ /ScriptAlias /cgi-scopeprogram/ /User scopeprogram
Group scopeprogramgrp
ServerAdmin webmaster@scopeprogram.net
ServerName ErrorDocument 404 /missing.html
DocumentRoot /TransferLog logs/scopeprogram-access-log
Redirect permanent / </virtualhost>

I still can't log in w/ the same username/password combonation.

Any ideas?

Thanks,
Clem C
 
You don't have any Authentication directives in the config, they should look like this:

Code:
AuthType Basic
AuthName "Restricted Directory"
AuthUserFile /home/usr/[URL unfurl="true"]www/adminusers[/URL]
Require valid-user

Do you have a .htaccess file in the DocRoot dirs? That is a common place to override authentication.
 
If you are running apache on a linux system, you will also need to set "user" and "group" back to "apache" or what ever it was before you changed it then delete those directives from your virtualhosts. These directives tell apache what user to run as. On a linux system everything needs to run as some user and that user has permissions and restrictions setup for access to the file system and system resources. I don't know what these directives do, if anything, an a Windows machine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top