Apache server and tomcat server setup

Hi Guys,

I have setup a small linode for my site http://www.classnotfound.com/. The request will redirect from Apache to Tomcat with the following configuration changes in Apache:

ProxyPreserveHost On

ProxyPass /jar/ http://www.classnotfound.com/

ProxyPass / http://localhost:8080/jar/

ProxyPassReverse / http://www.classnotfound.com:8080/jar/

ServerName classnotfound.com

When I tried to setup a new domain and redirect to some other context, I am stuck and the same content is being served.

For eg: if my new domain is XYZ.com

ProxyPreserveHost On

ProxyPass /xyz/ http://www.XYZ.com/

ProxyPass / http://localhost:8080/xyz/

ProxyPassReverse / http://www.XYZ.com:8080/xyz/

ServerName XYZ.com

Am I doing anything wrong here?

Please suggest

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct