httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Richardson" <...@derdev.com>
Subject mod_proxy _rewrite to SSL a backend server
Date Thu, 17 Jan 2002 16:22:30 GMT
I have Apache 1.3.22 on RH7.1 Linux as a Frontend server running SSL secured through :443.
 It is enabled with mod_proxy and mod_rewrite.  It is Internet accessible at https://www.example.com/

A Backend server is also running Apache (non-SSL!) with a legacy "application" site that is
cgi driven.  It is intranet accessible at http://backend.example.com/

I would like to have requests to Frontends's URL https://www.example.com/application/ be a
transparent passthrough / rewrite for requests to http://backend.example.com/ without having
to recode anything on Backend.

The result should be Internet output from:
https://www.example.com/application/cgi-bin/foo.cgi?i=1 or 
https://www.example.com/application/html/calendar.html or
or whatever else the Backend spews forth.

Can this be done with mod's _proxy and _rewrite?  What I though should work was:

--- snip httpd.conf----
<Directory />
RewriteEngine On
RewriteRule ^application/(.*)$ http://10.0.0.50/$1 [P]</Directory>

This brings some of the images and html forward, but the links from the Backend to /cgi-bin/foo.cgi
are still tied to www.example.com/cgi-bin/foo.cgi, so I conclude that I've missed something
to make them /application/cgi-bin/foo.cgi

Thanks!

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