httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nash, Marty" <Marty.N...@rfsuny.org>
Subject [users@httpd] Virtual Hosts
Date Mon, 14 Nov 2005 17:22:50 GMT
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... 

Mime
View raw message