Re: Rewrite relative image paths in a reversed proxy setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi André.

I'm glad we managed to understand eachother :)


Sorry, maybe I did not use the correct example before, but that is wrong.
If you original request is

http://172,18.0.1/SEDO
and from there, your browser receives an html page (wherever it came from), and that html page contains a link <img href="" then the browser will request
http://172,18.0.1/SEDO/image.gif

wait a minute.. maybe it won't. Because it would remove the "SEDO", for being the last path component, and replace it by "image.gif".
Now I think I get it.
The browser would have to know that it is not really getting "SEDO", but  /SEDO/something.
Hmmm.

I guess that the only way to make this work (if you cannot change the <img> links in the pages), would be to force a re-direct to the real thing, when the browser requests "SEDO".

That's what I tried before. But the thing is that I don't know where to redirect to, because:

a. I don't know whether image.gif belongs to SEDO or SEDO-NEW
b. I don't want to hardcode a Tomcat URL, because that server could be down. 

What is the resource that the browser really obtains when it requests
http://172,18.0.1/SEDO ?
(this must be something on your Tomcats)

The resource in the browser remains http://172.18.0.1/SEDO all the time.
While I see the following in my apache error logs:

No such file or folder /htdocs/image.gif  (More or less, I'm not behind that computer right now).

I'm puzzled. 
I think it may have to do with ProxyPassReverse not being set properly.





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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux