tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Wild" <jw...@DLBlair.com>
Subject Virtual Host Alias ignored?
Date Wed, 29 Aug 2012 16:09:24 GMT
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" />

 

                                    ...

                                    

            <Host

                name="mydomain.com"

                appBase="/home/websites/mydomain.com/webapps"

                unpackWARs="true"

                autoDeploy="true">

                <Alias>192.168.100.98</Alias>

                <Alias>www.mydomain.com</Alias>

                <Valve

 
className="org.apache.catalina.valves.AccessLogValve"

                    directory="/home/websites/mydomain.com/logs"

                    prefix="mydomain.com_access"

                    suffix=".log"

                    pattern="common"

                    resolveHosts="false" />

            </Host>

 

This only seems to be a problem when there is no https configured for
the host (Connector reconnectPort attribute is not specified.) For
example, this works fine:

 

        <Connector

            address="192.168.100.99"

            port="80"

            protocol="HTTP/1.1"

            connectionTimeout="20000"

            redirectPort="443"

            useIPVHosts="true" />

                                    

        <Connector

            address="192.168.100.99"

            port="443"

            useIPVHosts="true"

            protocol="org.apache.coyote.http11.Http11Protocol"

            SSLEnabled="true"

            maxThreads="150"

            scheme="https"

            secure="true"

            clientAuth="false"

            sslProtocol="TLS"

            ciphers="SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA,
TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA,
TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA"

            keystoreType="PKCS12"

            keystoreFile="/certs/www.anotherDomain.com.pkcs12"

            keystorePass="password" />

 

            <Host

                name="anotherDomain.com"

                appBase="/home/websites/anotherDomain.com/webapps"

                unpackWARs="true"

                autoDeploy="true">

                <Alias>www.anotherDomain.com</Alias>

                <Alias>anotherDomain.com</Alias>

                <Alias>192.168.100.99</Alias>

                <Valve

 
className="org.apache.catalina.valves.AccessLogValve"

                    directory="/home/websites/anotherDomain.com/logs"

                    prefix="anotherDomain.com_access."

                    suffix=".log"

                    pattern="common"

                    resolveHosts="false" />

            </Host>

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message