Re: Reverse proxy breaks image links ?

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

 



For reverse proxy you need

ProxyRequests Off

On Apr 7, 2011 11:53 PM, "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:

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=""> 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@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