Multiple Name based web Sites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx
    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@xxxxxxxxxxxxx
    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 ****************************************
#


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux