Re: How to Auto Add forward slash "/" when accessing a link/url through ProxyPass

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



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@xxxxxxxxx> 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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux