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

> On Thu, 7 Apr 2011 08:52:27 -0500
> Ed Sutton <esut...@fescorp.com> 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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to