How to Auto Add forward slash "/" when accessing a link/url through ProxyPass
Hi,
It's been long since I don't write Proxy rules, but IIRC you have to
match /s on the left side and on the right side.
On Sun, Jul 6, 2008 at 6:24 AM, ankush grover <ankushcentos@gmail.com> wrote:
> ProxyPass /testdiary http://testdiary.example.com/
> ProxyPassReverse /testdiary http://testdiary.example.com/
Maybe try:
ProxyPass /testdiary http://testdiary.example.com
ProxyPassReverse /testdiary http://testdiary.example.com
Or:
ProxyPass /testdiary/ http://testdiary.example.com/
ProxyPassReverse /testdiary/ http://testdiary.example.com/
I guess the second one is the one you want, but it won't do the
Redirect if you access /testdiary without the ending slash. You don't
need mod_rewrite for that one, a simple RedirectMatch should be enough
(I'm not 100% sure about the syntax though):
RedirectMatch /testdiary$ /testdiary/
Please let us know how that goes for you.
HTH,
Filipe
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
|