I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-06-06 02:23:11.662975-07 by nmagedman
USE CASE: foo.com as a front for bar.com

I'd appreciate advice on how to use HTTP::Proxy to have foo.com mirror bar.com.

In more detail:

* I own two domains: foo.com and bar.com
* I want foo.com to be more-or-less identical to bar.com, with some minor modifications.
* bar.com is served on a 3rd-party, proprietary, hosted CMS that doesn't support having foo.com as an alias.
* It does however support query strings like ?style=foo, so I could make bar.com/baz.html?style=foo render the look I want.
* foo.com/baz.html would be served by HTTP::Proxy, which would fetch bar.com/baz.html?style=foo, and modify all the bar.com links in the page (most of which are absolute URLs) to say "foo.com"
* In addition to foo.com, I'd also want several other domains {a,b,c}.com all doing the same ?style={a,b,c} trick

The main part that is unclear to me is whether HTTP::Proxy can act as a webserver for a specific host without acting as a general proxy.

Your help would be greatly appreciated!!

Direct Responses: Write a response