httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Darman <joseph.dar...@yahoo.com>
Subject Re: [users@httpd] Multiple Name based web Sites
Date Sat, 29 Mar 2014 22:08:40 GMT
Looks like the Apache script was good. The problem was in godaddy.


The domain names are registered in godaddy. Originally I had christianfarms portforwarding
to 931mev.

Had to remove port forwading and change DNS Zone File - A host  (@   50.176.126.157  
600sec) 


On Friday, March 28, 2014 9:00 PM, Joseph Darman <joseph.darman@yahoo.com> wrote:
 
Hello,

I was running a single web site with Apache and Windows 7, all worked fine. Tried to direct
another domain to the server (add a another web site), but all traffic goes to the first web
site. Below is the code I have:

NameVirtualHost *:80

# ********************Begin First Web Page **************************************

<VirtualHost *:80>
    ServerAdmin vto@localhost.com
    DocumentRoot "C:/Server/Apache2.2/www/931MeV/htdocs"
    Servername 931mev.com
    ServerAlias www.931mev.com
    ErrorLog "logs/931mev.localhost-error.log"
    CustomLog "logs/931mev.localhost-access.log" common

   <Directory />
       Options FollowSymLinks
       AllowOverride None
       Order deny,allow
       Deny from all
   </Directory>
#
   <Directory "C:/Server/Apache2.2/www/931MeV/htdocs">
       Options Indexes
 FollowSymLinks
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>

</VirtualHost>

# *******************End First Web Page ********************************************
#
#****************Begin Second Web Page ******************************************

<VirtualHost *:80>
    ServerAdmin vto@localhost.com
    DocumentRoot "C:/Server/Apache2.2/www/Christianfarms/htdocs"
    ServerName christianfarms.us
    ServerAlias www.christianfarms.us
    ErrorLog "logs/christianfarms.localhost-error.log"
    CustomLog "logs/christianfarms.localhost-access.log" common
#
   <Directory />
       Options
 FollowSymLinks
       AllowOverride None
       Order deny,allow
       Deny from all
   </Directory>
#
   <Directory "C:/Server/Apache2.2/www/Christianfarms/htdocs">
       Options Indexes FollowSymLinks
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>
</VirtualHost>

# *****************End Second Web Page ****************************************
#
Mime
View raw message