httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sorin Manolache <sor...@gmail.com>
Subject Re: apche rewrite and reverse proxy help
Date Sun, 14 Oct 2012 08:03:31 GMT
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>




Mime
View raw message