mnjhost Posted August 4, 2004 Posted August 4, 2004 Well, here ya go. I have a website called harry.com and within the html root I created a directory called harry2 This is for my secound website called harry2.com (virtual domain) Now the funny bit :D when I create a .passwd file and then a .htacess file I then edit the httpd.conf and changed the AllowOverride None to AllowOverride AuthConfig When I restart apache, I am missing the buttons on the site as well as the lanuage icons? but everything else seems to look ok. If I then remove AuthConfig out of the httpd.conf file and restart apache its all ok again, but my admin is still not protected. Could this be to do with running a virtual domain? :o Please help
Guest Posted August 5, 2004 Posted August 5, 2004 you need to check with your host on setting up a second domain on your server, as doing it that way doesnt work properly. you need to have that domain name added to your configuration, ointing to the proper spots and locations. the following is from an httpd.conf showing two different domains, one with just port 80, the other with port 80 and 443 example: <VirtualHost ip.address.of.domain:80> User username1 Group username1 ServerName domain.com ServerAlias www.domain1.com ServerAdmin [email protected] DocumentRoot /home/amerhose/www/domain1.com ScriptAlias /cgi-bin/ "/home/username1/www/cgi-bin/" <Directory /home/username1/www/cgi-bin> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> CustomLog /usr/local/apache/logs/username1/domain1.com-access_log combined ErrorLog /usr/local/apache/logs/username1/domain1.com-error_log FrontpageEnable FrontpageAdminEnable </VirtualHost> <VirtualHost ip.address.of.domain:80,443> ) User username2 Group username2l ServerName domain2.org ServerAlias www.domain2.org ServerAdmin [email protected] DocumentRoot /home/carousel/www/domain2.org ScriptAlias /cgi-bin/ "/home/username2/www/cgi-bin/" <Directory /home/username2/www/cgi-bin> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> CustomLog /usr/local/apache/logs/username2/domain2.org-access_log combined ErrorLog /usr/local/apache/logs/username2/domain2.org-error_log FrontpageEnable FrontpageAdminEnable </VirtualHost>
mnjhost Posted August 5, 2004 Author Posted August 5, 2004 Cheers Mibble, I will check this info. Is it important that the cgi_bin directorys are set different? m
Recommended Posts
Archived
This topic is now archived and is closed to further replies.