httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Björn Zettergren <bjorn.zetterg...@basefarm.se>
Subject Re: [users@httpd] My RewriteRule seems to be ignored
Date Mon, 22 Aug 2011 21:23:37 GMT
> RewriteEngine is on and the ProxyPassMatch rule is firing. I've
> attached my full config. I've tried to simplify it but it's still 200+
> lines. The important stuff is at the bottom. I would very much
> appreciate it if you could take a quick peek to tell me what I'm doing
> wrong.
>
> I have tried the config above just now: http://localhost/website (no
> slash) gives a 404, http://localhost/website/ (with slash) works as
> expected.

Hi,

i have not tested your config, but just at a quick glance, i suspect you 
might have better luck using the "[P]" (for PROXY) option to 
RewriteRule, instead of [T] (which is TYPE).

As such:

   RewriteRule ^/website$    http://localhost/website/ [P]
   ProxyPassMatch    ^/website/(.*)$ 
http://localhost:8000/website/$1

/Björn

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message