Linode Forum Index Linode Forum
Linode Community Forums
 


Apache server and tomcat server setup

Click here to go to the original topic

 
       Linode Forum Index -> General Discussion
Author Message
kishore



Joined: 17 Feb 2010
Posts: 1

Posted: Wed Feb 17, 2010 1:05 pm    Post subject: 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:

<VirtualHost *:*>
ProxyPreserveHost On
ProxyPass /jar/ http://www.classnotfound.com/
ProxyPass / http://localhost:8080/jar/
ProxyPassReverse / http://www.classnotfound.com:8080/jar/
ServerName classnotfound.com
</VirtualHost>

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
<VirtualHost *:*>
ProxyPreserveHost On
ProxyPass /xyz/ http://www.XYZ.com/
ProxyPass / http://localhost:8080/xyz/
ProxyPassReverse / http://www.XYZ.com:8080/xyz/
ServerName XYZ.com
</VirtualHost>

Am I doing anything wrong here?

Please suggest
Back to top  
 
       Linode Forum Index -> General Discussion
Page 1 of 1