On 22 August 2011 14:23, Björn Zettergren <bjorn.zettergren@xxxxxxxxxxx> wrote: >> 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 Yeah, that's what I started with. Then I changed it to PT (pass-through) which didn't work either. Then just before I sent the email I quickly removed the P without thinking things through. Stupid, sorry. I tried no flag, flag [P], and flag [PT]; they all seem to have the same behaviour. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx