tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <>
Subject Re: TOMCAT with multiple sites (one on https, others on http)
Date Thu, 09 Aug 2012 19:46:33 GMT
On 8/9/2012 10:59 AM, Massimo Chirivì - Ict Consultant wrote:
> i attach the correct file, but on the server tomcat the file was corrected
> but the problem remains.

This file has numerous problems.

You have been pointed at the documentation.
You have had several people point out the problems.

You have not incorporated any of the fixes that several people have 
recommended that you implement.

1. Your Host setup is at best not in keeping with good practices

2. You have Context elements in your server.xml

Again, this is not a good practice

3. You are using the wrong SSL Connector configuration

 From other logs, you are loading the APR native libraries. See

4. You have deleted a lot of the Listeners from the stock server.xml

Here's what you should do.

1. Start with a clean server.xml from
2. Follow this document to set up virtual hosts

3. Add a second Service by copying the first Service and changing the

4. In the second service:
    a. Delete the AJP Connector
    b. Delete the HTTP 1.1 Connector
    c. Add the SSL Connector following

5. Do NOT add any Context elements in server.xml

6. Use ROOT.war for each virtual host default application
    a. Package your default application into a war file
    b. Name it ROOT.war (case is important)
    c. Place it in the appBase for the targeted virtual host

7. Do not add Logger elements, or other "stuff" you think is necessary

Do these steps, and post the resulting server.xml file (without 
comments), inline (no attachments). The list normally strips attachments.

Your current server.xml file basically needs a complete rewrite.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message