httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <>
Subject Re: [users@httpd] ProxyPass work correctly but ReWriteRule has some error
Date Thu, 01 Jul 2010 13:58:26 GMT
Look at your configuration again. First, ProxyPass

      ProxyPass /olat
      ProxyPassReverse /olat

This says, when someone requests a URL starting with '/olat', proxy to
It also says to rewrite some headers, but thats not important right now.

Now, your RewriteRule version:

      RewriteRule ^/olat/ [P,L]

This says, when someone requests a URL that begins with '/olat/',
proxy to ''

Can you really not see the difference?

Let me show you with some URLs, and show what they get proxied to in
each version. PR = Proxy rule, RR = Rewrite

URL: /olat/

URL: /olat/media/base.css

URL: /olat
RR: None, attempts to serve the file /olat from your document root

I hope you can understand why now.



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