You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Christopher Long <ko...@gmail.com> on 2009/02/17 17:59:49 UTC

[users@httpd] mod_proxy not displaying images

Hello:

I'm attempting to use mod_proxy to display various webpages via ProxyPass.
I'm having issues getting the images to properly come through.  Here is what
I have in /conf/httpd.conf:


<IfModule proxy_module>

ProxyRequests Off

<Proxy *>
   Order deny,allow
   Allow from all
</Proxy>

ProxyPass        /google/ http://www.google.com/
ProxyPassReverse    /google/ http://www.google.com/

</IfModule>

And this is the error I am receiving in /logs/error.log:

[Tue Feb 17 11:54:21 2009] [error] [client 127.0.0.1] File does not exist:
D:/httpd/htdocs/intl, referer: http://localhost/google/
[Tue Feb 17 11:54:21 2009] [error] [client 127.0.0.1] File does not exist:
D:/httpd/htdocs/extern_js, referer: http://localhost/google/
[Tue Feb 17 11:54:21 2009] [error] [client 127.0.0.1] File does not exist:
D:/httpd/htdocs/images, referer: http://localhost/google/

Does anyone know how I can get these errors to go away and have the images
display?

Thanks,

Chris Long

Re: [users@httpd] mod_proxy not displaying images

Posted by Nick Kew <ni...@webthing.com>.
Matt McCutchen wrote:

>   I also
> suggest that you try a test case other than Google in case Google tries
> to block people from proxy-passing to them.

Google doesn't stop you proxying, but it does redirect to your country,
taking you out of scope of your rules.  That makes it tricky to proxy
unless (it thinks) you're in the US.

-- 
Nick Kew

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


Re: [users@httpd] mod_proxy not displaying images

Posted by Matt McCutchen <ma...@mattmccutchen.net>.
On Tue, 2009-02-17 at 11:59 -0500, Christopher Long wrote:
> I'm attempting to use mod_proxy to display various webpages via
> ProxyPass.  I'm having issues getting the images to properly come
> through.  Here is what I have in /conf/httpd.conf:
> 
> 
> <IfModule proxy_module>
> 
> ProxyRequests Off
> 
> <Proxy *>
>    Order deny,allow
>    Allow from all
> </Proxy>
> 
> ProxyPass        /google/ http://www.google.com/
> ProxyPassReverse    /google/ http://www.google.com/
> 
> </IfModule>
> 
> And this is the error I am receiving in /logs/error.log:
> 
> [Tue Feb 17 11:54:21 2009] [error] [client 127.0.0.1] File does not
> exist: D:/httpd/htdocs/intl, referer: http://localhost/google/
> [Tue Feb 17 11:54:21 2009] [error] [client 127.0.0.1] File does not
> exist: D:/httpd/htdocs/extern_js, referer: http://localhost/google/
> [Tue Feb 17 11:54:21 2009] [error] [client 127.0.0.1] File does not
> exist: D:/httpd/htdocs/images, referer: http://localhost/google/
> 
> Does anyone know how I can get these errors to go away and have the
> images display?

You probably need to use mod_proxy_html to rewrite image references in
the HTML, as mentioned in the ProxyPassReverse documentation.  I also
suggest that you try a test case other than Google in case Google tries
to block people from proxy-passing to them.

-- 
Matt


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