Re: Reverse proxy breaks image links ?

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

 



On Apr 7, 2011, at 9:42 AM, Nick Kew wrote:

> On Thu, 7 Apr 2011 08:52:27 -0500
> Ed Sutton <ESutton@xxxxxxxxxxx> wrote:
> 
>> >How do you properly configure a reverse proxy to forward http://myserver/jenkins to http://myserver:8080?  The configuration below works, yet it breaks image links.  I tried adding mod_proxy_html without success.  Here is what I have:
> 
> >>You appear to have activated mod_proxy_html but not told it to
> do anything.  So it's unsurprisingly not doing anything with
> your links!


Thank you for making me think.   

Any suggestions on how to make links displayed on a page with no trailing '/' work?  If I start with a trailing slash, the link to job-template page is good.

http://localhost/jenkins/
http://localhost/jenkins/job/job-template/

If I start with no trailing slash, links are missing the http://localhost/"jenkins"; part.

http://localhost/jenkins
http://localhost/job/job-template/   <-No-trailing slash, bad

File: proxy_html.conf

ProxyRequests Off
ProxyPass	/jenkins	http://localhost:8080
<Location /jenkins>
	ProxyHTMLEnable On
	ProxyPassReverse	/
 	ProxyHTMLURLMap		/ 			/jenkins/
</Location>

Thank you for your time,

-Ed


---------------------------------------------------------------------
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