httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Sutton <ESut...@fescorp.com>
Subject [users@httpd] Reverse proxy breaks image links ?
Date Thu, 07 Apr 2011 13:52:27 GMT
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:

1 -  Apache stack running on port 80.
http://myserver

2 - Jenkins(Hudson) build server running in servlet on same machine on port 8080.
http://myserver:8080

3 - httpd.conf
-----------------
...
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
...
#Attempt to get reverse proxy working for jenkins 8080
# version LIBXML2_2.6.27 not defined in file libxml2
#http://blog.sam-pointer.com/2009/11/17/building-and-installing-mod_proxy_html-and-mod_xml2enc
LoadFile /usr/lib/libxml2.so
LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule xml2enc_module modules/mod_xml2enc.so
...
# Pass jenkins http request to the Winstone server listening on port 8080
# This will redirect http://myserver/jenkins to http://myserver:8080
# This permits us to run multiple web servers on fesnaval at various ports 
# that appear to all be running on the standard http port 80. 
# Cool! Except image links break. Example: src="/static/a4e79bc9/images/24x24/clock.png"
ProxyPass		   /jenkins http://localhost:8080
ProxyPassReverse	/jenkins http://localhost:8080
ProxyHTMLEnable On
ProxyHTMLExtended On

Any tips or suggestions are much appreciated.  Thanks in advance,

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


Mime
View raw message