Re: mod_rewrite on reverse proxies...

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

 



On Wed, Apr 1, 2009 at 5:10 AM, Mike Lyon <mike.lyon@xxxxxxxxx> wrote:
> Howdy All,
>
> Is anyone out there using mod_rewrite to rewrite URLs that pass through
> their reverse proxies? I am using Apache as an SSL offloader for some web /
> app servers that sit behind it. I have it up and working great. The only
> problem is that the app will return to the client (via the reverse-proxy of
> course) HTML that includes hrefs to itself that point to
> "http://app1.example.com"; not "https://app1.example.com.";

The preferred solution is to configure your webapp servers so that
they use the proper hostnames (ie. that of your front end server) in
the URLs they generate, or that they generate relative URLs. This
should usually be possible.
I'd first try this, as any other solution will be more complicated and
has higher admin overhead.

If that is not possible have a look at mod_proxy_html. This is the
only module I know of that will rewrite HTML contents. mod_rewrite and
mod_proxy will not do this.

Krist

-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

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