Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3E921076F for ; Mon, 27 Jan 2014 03:09:43 +0000 (UTC) Received: (qmail 78808 invoked by uid 500); 27 Jan 2014 03:09:40 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 78385 invoked by uid 500); 27 Jan 2014 03:09:33 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 78377 invoked by uid 99); 27 Jan 2014 03:09:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jan 2014 03:09:31 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=HK_RANDOM_ENVFROM,HK_RANDOM_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sbctwc@gmail.com designates 209.85.217.179 as permitted sender) Received: from [209.85.217.179] (HELO mail-lb0-f179.google.com) (209.85.217.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jan 2014 03:09:26 +0000 Received: by mail-lb0-f179.google.com with SMTP id l4so4094052lbv.10 for ; Sun, 26 Jan 2014 19:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WSxowE8VPCf8NlW5DTTo2sy3vFHrg4LlnLmPohhO9wc=; b=DqVrhV4OVzrdxe0Eq9IjGFsqCFZ6ogLwPyvd/r9INm4fX/vETF6aAwB/RUUDqJXvBn F/Yx12868irpHwdc5ys8DJKoc6DVmJl72PUkOF7kCfwVlYOf6l+Cub6YMW+VJ5zcT2T5 fCZ8kyXcVJrdsFX7Xy1sjqorRFT+RkwjEHHPMUltZE5Y2TXM1D7riGxoFJTKPJu04QJD 7NHDrrRdkTHyw7Nq1Of06ryIQZVOMK3Wwc/ob14pz+AmSFcPNPUfuYpfQkfwczpzfyhw aalXR/bq/MbPAKoqtg0vI9n2jhBHbv+mSPtvepDytZ32FRYRKM9xQ8UtE87lBr2LtpPA 205w== MIME-Version: 1.0 X-Received: by 10.152.20.6 with SMTP id j6mr15812911lae.8.1390792139709; Sun, 26 Jan 2014 19:08:59 -0800 (PST) Received: by 10.112.35.5 with HTTP; Sun, 26 Jan 2014 19:08:59 -0800 (PST) Date: Sun, 26 Jan 2014 22:08:59 -0500 Message-ID: From: MM KP To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=089e013d2034719fdf04f0eb070f X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Need help with reverse proxying and image loading --089e013d2034719fdf04f0eb070f Content-Type: text/plain; charset=ISO-8859-1 Hello all I am new to apache & the apache mailing list so PLEASE forgive me for my long message : I am trying to configure a nice reverse proxy using Apache. Basically this is what I want : i want to be able to browse to something like testproxy.myproxy.com and proxy to www.cnn.com. I want to be able to see images and i want javascript and css and all that good stuff loaded as well. I already created a DNS record for testproxy.myproxy.com and this is the configuration im using for the virtual host: ServerName testproxy.myproxy.com ProxyRequests off ProxyPass / http://www.cnn.com/ ProxyPassReverse / http://www.cnn.com/ now when i restart the httpd service (By the way I am using RHEL 6.5), I can browse to testproxy.myproxy.com but allthat appears in the browser are text and links. No images are loaded nor any CSS/javascript. What am I missing in my virtualhost configuration thats preventing me from loading images? Ive noticed that some of the images on cnn.com are hosted on a different site such as : http://i2.cdn.turner.com/cnn/dam/assets/ Im guessing that since the images are hosted in the /cnn/dam/assets/ folder on i2.cdn.turner.com , and the virtualhost/reverse proxy is only set up to proxy pass to www.cnn.com , it is not loading images and scripts that are hosted on http://i2.cdn.turner.com/cnn/dam/assets/. I dont know if i am even close to being accurate with my assumptions. Apache is a very new thing to me. my question is how do I go about configuring my virtualhosts properly so that every image and script that is on www.cnn.com, will be URL rewritten as testproxy.myproxy.com/ blah blah blah as opposed to i2.cdn.turner.com/etcetcetcetc? for example one of the images on CNN's homepage is: http://i2.cdn.turner.com/cnn/dam/assets/140123154723-07-super-bowl-prep-bin-tease.jpg I want to be able to go to a browser, type in testproxy.myproxy.com in the address bar, proxy to www.cnn.com and when i right click on the image, i want the FQDN of the image to be something like http://testproxy.myproxy.com/images/super-bowl-prep-bin-tease.jpg. Basically i want all URLs to be rewritten as http://testproxy.myproxy.com/.......etc etc etc. All help is GREATLY appreciated because well, i am totally lost here lol. Ive done research on using mod_proxy_html and what not, but im still confused as to how I go about doing this in my situation. Please assist me! Thanks!! SBC --089e013d2034719fdf04f0eb070f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello all
=
I am new to apache & the apache mailing list so PLEASE f= orgive me for my long message :


I am trying to configure a= nice reverse proxy using Apache. Basically this is what I want : i want to= be able to browse to something like=A0 testproxy.myproxy.com and proxy to www.cnn.com. I want to be able to see images and i want javascript and= css and all that good=A0 stuff loaded as well. I already created a DNS rec= ord for testproxy.myproxy.com = and this is the configuration im using for the virtual host:


<VirtualHost [::]:80>
=A0=A0 ServerName testproxy.myproxy.com
=A0=A0 ProxyRequests of= f
=A0=A0 ProxyPass / http://www.cnn.com/=
=A0=A0 ProxyPassReverse / http://ww= w.cnn.com/
</VirtualHost>


now when i restart the httpd service = (By the way I am using RHEL 6.5), I can browse to testproxy.myproxy.com but allthat appears in the browse= r are text and links. No images are loaded nor any CSS/javascript. What am = I missing in my virtualhost configuration thats preventing me from loading = images? Ive noticed that some of the images on c= nn.com are hosted on a different site such as :

http://i2.cdn.turn= er.com/cnn/dam/assets/

Im guessing that since the images a= re hosted in the /cnn/dam/assets/ folder on i2.cdn.turner.com , and the virtualhost/reverse proxy is only set= up to proxy pass to www.cnn.com , it is= not loading images and scripts that are hosted on http://i2.cdn.turner.com/cnn/dam/assets/. = I dont know if i am even close to being accurate with my assumptions. Apach= e is a very new thing to me.


my question is how do I go about configuring my virtualhosts = properly so that every image and script that is on www.cnn.com, will be URL rewritten as testproxy.myproxy.com/ blah blah blah as opposed to i2.cdn.turner.com/etcetcetce= tc? for example one of the images on CNN's homepage is:

http://i2.cdn.turner.com/cnn/dam/assets/14012315= 4723-07-super-bowl-prep-bin-tease.jpg

I want to be able to= go to a browser, type in testprox= y.myproxy.com in the address bar, proxy to www.cnn.com and when i right click on the image, i want the FQDN of = the image to be something like http://testproxy.myproxy.com/images/super= -bowl-prep-bin-tease.jpg.
Basically i want all URLs to be rewritten as http://testproxy.myproxy.com/.......etc etc= etc.

All help is GREATLY appreciated because well, i am tota= lly lost here lol. Ive done research on using mod_proxy_html and what not, = but im still confused as to how I go about doing this in my situation.

Please assist me!


Thanks!!

SBC
<= div>

--089e013d2034719fdf04f0eb070f--