httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Axel-Stephane SMORGRAV" <>
Subject RE: [users@httpd] Needing help with mod_proxy
Date Wed, 02 Jan 2008 16:36:53 GMT
My fault. I guess that what is happening is that the browser is being redirected and the Location
header is not rewritten because I omitted the ProxyPassReverse directives.
Try adding:
ProxyPassReverse /otherapp/
ProxyPassReverse /
There is another problem due to you removal of the %{REQUEST_URI} for /otherapp. You do not
want to strip off the whole URI while proxying. You probably only want to strip off /otherapp.
So now try this configuration:

  RewriteEngine On
  RewriteLogLevel 9

  # You should not need this if you use mod_dir
  RewriteRule ^/$ /index.html [R]

  RewriteCond %{REQUEST_URI} ^/otherapp(.*)
  RewriteRule . [L,P]

  RewriteRule .{REQUEST_URI} [L,P]

  # I here assume that ProxyPreserveHost is Off
  ProxyPassReverse /otherapp/
  ProxyPassReverse /



De : Bryan Richardson [] 
Envoyé : mercredi 2 janvier 2008 17:13
À :
Objet : Re: [users@httpd] Needing help with mod_proxy

Hi again Axel.  I tried out what you said and I'm still having some problems.  Below is what
I have in my site's config file.  This makes it possible for me to go to
and I will get forwarded to my Rails app server at port 3001.  Notice I had to leave %{REQUEST_URI}
off the end of the RewriteRule for my otherapp rule.  However, if I then click on a link within
my Rails app, it tries to go to rather than
 How can I make it such that my Rails app thinks that is its root
rather than  Thanks again for your help! -- BTR

  <Proxy *>
    Order deny,allow 
    Allow from All

  RewriteEngine On
  RewriteRule ^/$ /index.html [QSA]
  RewriteCond %{REQUEST_URI} ^/otherapp
  RewriteRule . <> [L,P]
  RewriteRule .{REQUEST_URI} [L,P]

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message