Re: Reverse proxy with mod_rewrite using RewriteRule [P]

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

 



> I don't get it, I must be missing something. Any clue, please?

You're possibly in a situation where your rewrite rule is matching
against subsequent requests, causing a loop.

For example:-

1. You make a request to /something/ which is proxied by your rule to
http://www.mysite.es/something/

2. The back-end server send a 301 redirect to
http://www.mysite.es/something/public/index.asp

3. The client browser sends a request to
http://www.mysite.es/something/public/index.asp, which is the picked
up by your rule and internally rewritten and proxied to
http://www.mysite.es/something/something/public/index.asp.

And this continues. I think there's probably a better way to do what
you want but I'm not sure exactly what it is you're trying to do. As
other posters have suggested, it might involve using the ProxyPass
directive.

Hope that helps.

Cheers,
Phil.

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