Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

mod_proxy does not load images

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


hfetse at gmail

Aug 7, 2013, 11:13 AM

Post #1 of 3 (30 views)
Permalink
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 [at] httpd
For additional commands, e-mail: users-help [at] httpd


trawick at gmail

Aug 7, 2013, 11:16 AM

Post #2 of 3 (27 views)
Permalink
Re: mod_proxy does not load images [In reply to]

On Wed, Aug 7, 2013 at 2:13 PM, eric tse <hfetse [at] gmail> 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 [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


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


nick at webthing

Aug 7, 2013, 12:47 PM

Post #3 of 3 (25 views)
Permalink
Re: mod_proxy does not load images [In reply to]

> 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 [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.