You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by eric tse <hf...@gmail.com> on 2013/08/07 20:13:06 UTC

[users@httpd] mod_proxy does not load images

Hello,

I am configuring mod_proxy

proxyPass /wur http://serverA.com:80/

It does load the page
when I access proxyserver.com/wur
get 200 for /wur
and get 404 for images

The rule only matches /wur
not the content within /wur

attached the access logs
142.229.90.133 - - [07/Aug/2013:11:03:34 -0600] "GET /wur HTTP/1.1" 200 594
142.229.90.133 - - [07/Aug/2013:11:03:34 -0600] "GET /welcome.png
HTTP/1.1" 404 209
142.229.90.133 - - [07/Aug/2013:11:03:34 -0600] "GET /favicon.ico
HTTP/1.1" 404 209

Can you please help?
Thanks and regards,
Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_proxy does not load images

Posted by Nick Kew <ni...@webthing.com>.
> I am configuring mod_proxy
> 
> proxyPass /wur http://serverA.com:80/

That'll fail in almost all cases, because you have mismatched slashes.
ProxyPass /wur/

> attached the access logs
> 142.229.90.133 - - [07/Aug/2013:11:03:34 -0600] "GET /wur HTTP/1.1" 200 594
> 142.229.90.133 - - [07/Aug/2013:11:03:34 -0600] "GET /welcome.png

Does the <img> refer to /welcome.png or welcome.png?
If the latter then rewriting the link is unnecessary (though
others may still need it).

> rewrite the html links with mod_proxy_html?

Indeed, if links have to be rewritten.

> 142.229.90.133 - - [07/Aug/2013:11:03:34 -0600] "GET /favicon.ico
> HTTP/1.1" 404 209

That's a special case: something the browser requests unprompted.
If you want it, you'll have to give it its own rule.

-- 
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_proxy does not load images

Posted by Jeff Trawick <tr...@gmail.com>.
On Wed, Aug 7, 2013 at 2:13 PM, eric tse <hf...@gmail.com> wrote:

> Hello,
>
> I am configuring mod_proxy
>
> proxyPass /wur http://serverA.com:80/
>
> It does load the page
> when I access proxyserver.com/wur
> get 200 for /wur
> and get 404 for images
>
> The rule only matches /wur
> not the content within /wur
>
> attached the access logs
> 142.229.90.133 - - [07/Aug/2013:11:03:34 -0600] "GET /wur HTTP/1.1" 200 594
> 142.229.90.133 - - [07/Aug/2013:11:03:34 -0600] "GET /welcome.png
> HTTP/1.1" 404 209
>

rewrite the html links with mod_proxy_html?


> 142.229.90.133 - - [07/Aug/2013:11:03:34 -0600] "GET /favicon.ico
> HTTP/1.1" 404 209
>
> Can you please help?
> Thanks and regards,
> Eric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
Born in Roswell... married an alien...
http://emptyhammock.com/