httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amol Jakatdar <ajaka...@odu.edu>
Subject Re: [users@httpd] IP-based vhosts and domain names problem
Date Tue, 28 Jan 2003 22:38:58 GMT
FYI,

Name based virtual hosts DO NOT work with SSL.
With SSL the first VirtualHost for that IP will always be selected.
http://httpd.apache.org/docs-2.0/vhosts/name-based.html

Madere, Colin wrote:
> Setup:
> 
> httpd.conf
> ***
> ServerName server.my.domain
> Listen IP1:80
> 
> <VirtualHost IP1:80>
> DocumentRoot "/www/one"
> ServerName server.my.domain
> ...
> </VirtualHost>
> 
> Listen IP2:443
> Listen IP3:443
> 
> <VirtualHost IP2:443>
> DocumentRoot "/www/one/two"
> ServerName server2.my.domain
> ...
> </VirtualHost>
> 
> <VirtualHost IP2:443>
> DocumentRoot "/www/one/two/three"
> ServerName server3.my.domain
> ...
> </VirtualHost>
> 
> Problem:
>   When using IPs to browse to servers, all works fine.  When using names to
> browse, requests to all domain names serve up content from the default/first
> site (or vhost #1) on port 80.  With log files set up for each different
> vhost, the hit gets recorded in that vhosts log file, but the content is
> pulled from the DocumentRoot of the site on port 80 (vhost #1).  As I said
> above, when IPs are used the appropriate content gets served.
> 
> Notes:
>   Tomcat and JK are used to fwd app requests, but that seems unrelated and
> Tomcat is reacting correctly when requests are forwarded.  As I said, it
> works fine with just IPs, but when names are added Apache always acts as
> though content were requested of vhost #1.
> 
> Ideas?
> 
> Colin Madere
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message