multiple website hosting
I have put in 2 test domains on my RH9 server. i have made the virtual host settings in /etc/httpd/conf/httpd.conf according to 2 articles that i pulled off the web and my RH9 bible. my config of
NameVirtualHost * <VirtualHost *> DocumentRoot /var/www/sitename1.net ServerName www.sitename1.net ServerAdmin dmatney@sitename1.net ErrorLog logs/sitename1.net.log </virtualhost> and then the same paragraph for site 2 with all the correct settings when i put the actual IP address after the virtualhost tag <VirtualHost xx.xx.xx.xx> i get "ERROR 400". and the same thing when i use <VirtualHost *> Does anyone have any suggestions for this? I would greatly appreciate it. cdm |
make the following changes to match your configuration:
Code:
NameVirtualHost *:80 also... be sure to check your DNS settings to make sure they are setup correctly. hope i could help!!!! -linuxlastslonger- |
you are local. that is different!
thanks for the help. i have been trying to work on this all day. my httpd.conf file looks really messed up after using the graphical tool. i backed up my httpd.conf file but, it was already messed up. any ideas on getting a new httpd.conf file without blowing away all that i have? |
i am not going to worry much on the dns for now. i think that it is ok. whenever i service start httpd, that is where i get the errors.
[root@abs05 conf]# service httpd restart Stopping httpd: [FAILED] Starting httpd: [Mon Dec 20 15:24:23 2004] [warn] VirtualHost www.micromgrs.net:80 overlaps with VirtualHost www.abshr.net:80, the first has precedence, perhaps you need a NameVirtualHost directive [FAILED] here is what the httpd.conf looks like (not sure where the first virtual host came from) <VirtualHost *> ServerSignature email DirectoryIndex index.php index.html index.htm index.shtml LogLevel warn HostNameLookups off </VirtualHost> <VirtualHost www.micromgrs.net:80> ServerAdmin dmatney@micromgrs.net DocumentRoot /var/www/html/micromgrs ServerName www.micromgrs.net ErrorLog /var/log/micromgrs.log </virtualHost> <VirtualHost www.abshr.net:80> ServerAdmin dmatney@abshr.net DocumentRoot /var/www/html/micromgrs ServerName www.abshr.net ErrorLog /var/log/abshr.log </VirtualHost> the NameVirtualServer * does not appear and does not change the startup status with or without it. |
check that - i found the problem. the directory for abshr and micromgrs are the same. once i got that fixed, i tried to restart and it just says that the service failed. no reason this time.
|
All times are GMT -5. The time now is 09:26 PM. |