Using mod_proxy through mod_perl

Ashish Mukherjee <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CACgMzfyvy9vx4zbuA3Jrg6xOnkYwQ+8MptbrQhwk+GF9XZCp0Q@mail.gmail.com>
Hello,

I am attempting to build an application which allows people to login to my
site and thereafter, browse certain sites on a paid subscription basis.
These sites can only be browsed by going through our site as a  proxy,
similar to HideMe etc.

I tried using Apache mod_proxy but am facing a problem that HTTP 302 is not
followed by Apache and is sent back to the client/Browser.

Thereafter, I tried to write a mod_perl handler as described here -
http://foertsch.name/ModPerl-Tricks/using-modproxy-as-useragent.shtml.
Predictably, the issue is that since the response is returned to my perl
handler and not the Browser (the way a proxy is usually used), the other
assets (images, JS) don't show up on the Browser when I print the response
of my HTTP request to the origin site in my mod_perl handler.

Is there an easier way to solve this? Are there any commercial software
which achieve the same?

Regards,
Ashish
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.