Re: [users@httpd] help with rewrite rule

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

 



You know, I'm guessing that I'm getting that proxy loop error because the proxy is listening on both ports 80 and 81 (I have a virtual host on 81)? Just a guess....

mike

Mike Soultanian wrote:
See the ProxyPassReverse directive, whose job it is to correct
trailing-slash redirects.
(Hint: You don't even need RewriteRule for this. ProxyPass will do fine.)

Joshua.

Hey Joshua,
For kicks I tried ProxyPass (I really have no idea what I'm doing) using the following:

proxyrequests off
ProxyPass         /foobarfoobar http://localhost:81/

and it worked perfectly.  At first I tried:

ProxyPass         / http://localhost:81/

which resulted in:

 The proxy server received an invalid response from an upstream server.
 The proxy server could not handle the request GET /cota/index.cfm.

 Reason: Max-Forwards has reached zero - proxy loop?

So, then I tried:

ProxyPass         /cota http://localhost:81/

but then I couldn't access the folder /cota; I didn't even see it in the webroot folder listing. So, then I tried the following:

ProxyPass         /foobarfoobar http://localhost:81/

and it works great! I tried /foobarfoobar because I noticed when I had /cota, everything except for /cota worked fine. Is there a cleaner way to use this mod? If not, I'm still a very happy camper!!

Thanks,
Mike

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

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