On 2012-10-14 01:12, Abdel wrote:
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?

Try

RewriteEngine On
RewriteRule ^/(user[^/]*)$ http://local.domain.com/app?user=$1 [P]

<Proxy http://local.domain.com/app>
        ProxyPass http://local.domain.com/app keepalive=On
</Proxy>



Reply via email to