Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have installed Tomcat 7 and java 1.6 on my Ubuntu 12.04 x64 VPS. I am trying to set up a tomcat 7 server in this way-

domain1.com--> is a vhost with its own deployment directory. domain2.com--> is a vhost with its own deployment directory.

Now, I have created and installed an SSL Certificate corresponding to domain1.com. I have also installed APR connector for Tomcat and added the config entry for SSL @ port 8443 --> tomcat's server.xml.

I have also left the connector for port 8080 as it is(unchanged).

Now, when I try to access http://<IP_ADDRESS>:8080/manager/html/ it works. And the host manager app also works at the IP address and port=8080. Now I have added 2 VHOSTS--> domain1.com and domain2.com. This also happens successfully.

However the following : https://domain1.com:8443/manager/html/ gives a error --

"Webpage is not available-- Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection."

While http://domain2.com:8080/manager/html/ gives error-

HTTP Status 404 - /manager/html

type Status report

message /manager/html

description The requested resource (/manager/html) is not available.

Apache Tomcat/7.0.26

How do I resolve the above problems? Is this kind of setup domain1.com-> SSL @ port 8443 and domain2.com--> Port 8080 (non-SSL) possible in Tomcat 7? How do I correct above problems/set up Tomcat 7 correctly for this type of setup?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.