Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Proxy Pass
PostPosted: Sat Feb 20, 2010 7:42 am 
Offline
Newbie

Joined: Sat Feb 20, 2010 7:13 am
Posts: 2
Hi,

I have setup virtual host in apache2 as below

<VirtualHost localhost:80>
ServerAdmin smohanty@xxxx.com
ServerName xxxx.com
ServerAlias www.xxxx.com
#DocumentRoot /srv/www/xxxx.com/public_html/
ErrorLog /srv/www/xxxx.com/logs/error.log
CustomLog /srv/www/xxxx.com/logs/access.log combined

ProxyPass /ShoppingCart http://localhost:8080/
</VirtualHost>

my requirement is that when i hit www.xxxx.com it should hit my tomcat (which is running in 8080) application ShoppingCart. Now when It returns me page not found.

Need your support to complete it.

Regards,
Sanjay


Top
   
PostPosted: Sat Feb 20, 2010 6:48 pm 
Offline
Junior Member
User avatar

Joined: Sun Oct 02, 2005 11:54 am
Posts: 43
Website: http://www.garyscott.net
Location: Goleta, CA
I think to meet your requirement you need the configuration to be like this

Code:
ProxyPass / http://localhost:8080/ShoppingCart


I am not 100% sure, I think this is right. The way you have it setup you would be need to go to www.xxxx.com/ShoppingCart and you would get the Tomcat main menu.

The first parameter in ProxyPass is the path in the URL, and the second is what to point it too.

Normally it would be like this:
Code:
ProxyPass /ShoppingCart http://localhost:8080/ShoppingCart

This is who you get Apache to front tomcat (the easy way).

Thy these or a few variations and see how it works out. Reload Apache after each change. I got this info here http://tomcat.apache.org/tomcat-6.0-doc/proxy-howto.html


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group