httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hilco Wijbenga <>
Subject [users@httpd] My RewriteRule seems to be ignored
Date Sat, 20 Aug 2011 06:14:33 GMT
Hi all,

I have what boils down to

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

but when I try http://localhost/website (note the missing slash) it
does not get rewritten to http://localhost/website/ (note the appended
slash). Instead Apache tries to retrieve
/var/www/localhost/htdocs/website (the doc root + website) which does
not exist.

If I try http://localhost/website/ myself then the ProxyPassMatch
kicks in just as expected. So I seem to be close. What am I doing

Please note that I have set logging to maximum and a log file *is*
created but it stays empty. So apparently the RewriteRule never fires.

[I am aware that I could use a ProxyPassMatch with ^/website(.*)$ in
this case. I would, however, like to get the above scenario to work.]


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