468,505 Members | 1,801 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

Apache rewrite and reverse proxy

I have back end website running on Tomcat with the following url http://local.domain.com/app. External user access the website through apache proxy with the following url http://www.domain.com/user1 (user1, user2, etc... Itís uri specific to each user). I want to use apache rewrite or/ and reverse proxy directive to translate the url like http://www.domain.com/user1 into http://local.domain.com/app?user=user1
Please can someone help me please?

Thanks,

Abdel
Oct 13 '12 #1
1 3064
Luuk
1,043 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. ProxyPass /user1 http://local.domain.com/app?user=user1
  2. ProxyPassReverse /user1 http://local.domain.com/app?user=user1
  3. ProxyPass /user2 http://local.domain.com/app?user=user2
  4. ProxyPassReverse /user2 http://local.domain.com/app?user=user2
  5.  
I think above should work for user1 and user2, but i dont know how to do this dynamically for x users
Oct 16 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by A.M | last post: by
1 post views Thread by bart | last post: by
2 posts views Thread by =?Utf-8?B?a2NtYXJzaGFsbC5tc3A=?= | last post: by
1 post views Thread by Dave Mathew | last post: by
3 posts views Thread by Jane Parker | last post: by
5 posts views Thread by kokababu | last post: by
3 posts views Thread by gieforce | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.