[users@httpd] Virtual Hosts

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

 



Title: Virtual Hosts

I'm trying to setup 2 virtual hosts on the same IP.  Here's what my configuration looks like:

Listen myservername:80
Listen myotherserver:8080

NameVirtualHost myservername:80
NameVurtualHost myotherserver:8080

<VirtualHost myservername:80>
DocumentRoot /path/to/htdocs
ServerName myservername
</VirtualHost>

<VirtualHost myotherserver:8080>
DocumentRoot /path/to/htdocs
ServerName myotherserver
</VirtualHost>

This is running on a Solaris 8 host. Using lsof, I can see a 'LISTEN' for both ports. When I open IE and type in the url for 'myotherserver', I get the page for 'myservername'. The DocumentRoot statement points to different paths for each.  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