tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert L Sowders" <rsowd...@usgs.gov>
Subject Re: Name Based Virtual Host Problem
Date Mon, 09 Dec 2002 08:54:30 GMT
You have told apache to answer www.yyy.com not yyy.com.  When you ask for 
yyy.com and you get xxx.com then the default virtual is answering not your 
intended target.  There are a few ways to solve this.  Easiest would be to 
make a cname for www.yyy.com of yyy.com and have DNS correct the omission 
of the www or setup IP based virtual hosts, then alias all the IPs to the 
same nic. 

In any case this is an Apache specific question and would be better served 
on the Apache lists not here.

rls





"Laxmikanth M.S." <laxmikanth.ms@sonata-software.com>
12/08/2002 10:46 PM
Please respond to "Tomcat Users List"

 
        To:     tomcat-user@jakarta.apache.org
        cc: 
        Subject:        Name Based Virtual Host Problem


Hi all,
I have configured apache1.3.27 and tomcat4.1.12.
I have configured two sites as below using Name Based Hosting.
when I type www.xxx.com and www.yyy.com the correct sites are coming - no
problem ...but when I type "yyy.com" it opens www.xxx.com's pages...why 
this
happensd ......how it can be solved....
thanks in advance
****************************************************************************
*****************
NameVirtualHost  *
<VirtualHost *>
    #ServerAdmin x@y.com
    DocumentRoot /usr/local/apache/tggf
    ServerName www.xxx.com
</VirtualHost>

<VirtualHost *>
    #ServerAdmin contactus@ftiinstitutional.com.au
    DocumentRoot /usr/local/apache/site
    ServerName www.yyy.com
</VirtualHost>
****************************************************************************
***************** 

regards
Laxmiaknth

*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you 
may
not copy or deliver this message to anyone. In such case, you should 
destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>





--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message