My RewriteRule seems to be ignored

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux