httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hilco Wijbenga <hilco.wijbe...@gmail.com>
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
wrong?

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.]

Cheers,
Hilco

---------------------------------------------------------------------
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