[users@httpd] Virtual Hosts

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

 



Title: Virtual Hosts

I'm trying to set up 2 virtual hosts,  here's how my configuration files looks:

Listen <virtual_host_number1>:80
Listen <virtual_host_number2>:8080

NameVirtualHost <virtual_host_number1>:80
NameVirtualHost <virtual_host_number2>:8080

<VirtualHost <virtual_host_number1>:80>
    ServerAdmin xxxxxxxxx
    DocumentRoot <path to doucments>
    ServerName number1.host.name  
    ErrorLog logs/error_log
    CustomLog logs/access_log common
</VirtualHost>

<VirtualHost virtual_host_number2>:8080>
    ServerAdmin xxxxxxxxxxx
    DocumentRoot <path to documents>
    ServerName number2.host.name 
    ErrorLog logs/mh_error_log
    CustomLog logs/mh_access_log common
</VirtualHost>

I can run a configtest and I get the message: Syntax ok. However, when I attempt to access the page, I get: Server Not Found. There are entries in DNS for both ServerName number 1 & number 2.  Any thoughts?

Thanks….


[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