httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Parker <epar...@mindsec.com>
Subject mod_rewrite and apache
Date Tue, 15 Jan 2002 01:08:39 GMT


Greetings Apache Users,

I bring before you today, a mod_rewrite question..

I have a cluster of web servers.. I'm working on getting the images them
selves served off of a new cluster, that are squid servers running
everything from cache.

The problem is, we can't change the website code, because parts of the
site are SSL, and parts at non-SSL, but calling the same files.. All using
the same headers (Design flaw that can't be fixed right now).

So, my thought was.. I'd use mod_rewrite to rewrite the URL's in each
Vhost (the SSL vhost and the non-ssl vhost).. to redirect:

http://www.domain.com/images/*

to

http://content.domain.com/images/*

Well, it comes down to a few things.. I don't want to use the "P" flag,
because I don't want that apache instance to serve the images at all.. I
want it to actually rewrite the code it serves to the client.. So a
reference to:

<img src="/images/foo.jpg"> is re-written as <img src="http://content.domain.com/images.foo.jpg">

I could use the [R] flag, but that just redirects them.. and I don't want
people to make a request, get a redirect, and make another request.. I
need it to actually re-write the code..

I've read, and re-read the multiple mod_rewrite faqs on the apache site,
and I just don't see what I need. Can it be done, and does anyone know
how? A good pointer would be great.

Thanks!


-Erik


---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message