-----Original Message-----
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Wednesday, August 29, 2012 11:49 AM
To: Tomcat Users List
Subject: Re: Virtual Host Alias ignored?

2012/8/29 Jeff Wild <jw...@dlblair.com>:
> Tomcat 6 (standalone), several virtual hosts
>
>
>
> I have a A record for mydomain.com and a CNAME record for
> www.mydomain.com.
>
> When I enter domain.com in my browser, everything works fine but
> www.domain.com results in "Server not found."
>
>
>
> 1. Is my configuration correct when no https is required?
>
> 2. Is it possible there's a DNS issue?
>
>
>
>         <Connector
>
>             address="192.168.100.98"
>
>             port="80"
>
>             protocol="HTTP/1.1"
>
>             connectionTimeout="20000"
>
>             useIPVHosts="true" />
>

<Alias> is just a textual string that is matched against data sent by
incoming HTTP request.  No DNS lookup happens at Tomcat side.

Your useIPVHosts="true"  effectively disables host name matching.
(Target IP address of incoming request will be used instead of the
value of the "Host" header).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Granted, so if my DNS is set up correctly (www.mydomain.com CNAME points
to mydomain.com) then requests to www.mydomain.com should appear to
tomcat as coming from the same IP as mydomain.com.  So why isn't this
working? Something wrong with my configuration?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to