[users@httpd] Name-based Virtual Host

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

 



I have setup 2 virtual hosts in httpd.conf 
I have one external ip address being nat'd to an internal ip
I would like to use both websites directed to the same external, to then be handled by httpd.conf.
 
Am I on target so far?
 
One of the Virtual Hosts is for - www.mowingandmore.net
 
The DNS info for this site is set through Network Solutions. It is pointing to 66.196.225.50
But when I try website name it defaults to general/default DocumentRoot, not the one I set in the VirtualHost
 
This is my Virtual Host setup in httpd.conf .......
 
NameVirtualHost 66.196.225.50
 
<VirtualHost *>
    ServerSignature email
    DirectoryIndex index.html index.htm
    LogLevel debug
    HostNameLookups off
</VirtualHost>  
 
# Virtual Host 0
<VirtualHost 66.196.225.50>
    DocumentRoot /var/www/html/abni
    ServerName abni.com
    ServerSignature email
</VirtualHost> 
  
# Virtual Host 1
<VirtualHost 66.196.225.50>
    DocumentRoot /var/www/html/mow
    ServerName mowingandmore.net
    ServerSignature email
</VirtualHost>   
 
default DocumentRoot is /var/www/html
external ip is 66.196.225.50
 
Can someone tell me where I am missing the boat.
 
Thanks in advance, Beth
 

[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