Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: Reverse Proxy

From: Mohamed Elashmawy <Mohamed.Elashmawy(at)itworx.com>
Date: Fri Aug 31 2001 - 13:05:23 EDT


I've made a rewrite rule that redirects all the requests of the absolute links to the reverse proxy.
However, the problem now is in the images with absolute links as they don't come with the page.
So I am gonna try filtering the pages while passing the proxy to change the URLs

How can I filter URLs within the content of a page that the server sends? In which module is this?
thnx

-----Original Message-----
From: Graham Leggett [mailto:minfrin@sharp.fm] Sent: Thursday, August 30, 2001 11:58 PM To: modproxy-dev@apache.org
Subject: Re: Reverse Proxy

Mohamed Elashmawy wrote:

> I've setup the reverse proxy.
not
> actually links but redirections but it's the same case)

Are you talking about URLs embedded inside the pages themselves? There isn't a way of doing this (to my knowledge) just with Apache - however trying to filter the URLs within the content is a bad idea, as there are so many ways of getting it wrong.

First prize is to make sure all the links are relative. If this is not possible, change the URLs so that they are absolute but without hostnames, eg "/images/someimage.gif".

A good rule of thumb is to make the URL on the backend always the same as the URL on the frontend, for example:

ProxyPass /images/ http://backend.com/images/

Do you need help?X

Then everything will just work...

Regards,
Graham

-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."
Received on Fri Aug 31 17:07:48 2001

This archive was generated by hypermail 2.1.8 : Thu Aug 24 2006 - 14:53:45 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library