开发者

Apache 2.2 Reverse Proxy fails to load the images

开发者 https://www.devze.com 2023-04-12 08:33 出处:网络
I am trying to setup a reverse proxy to my firewall through my internal webserver. WAN -开发者_如何转开发> port 80 (rewrite to port 443) -> Internal Webserver -> Virtualhost -> Reverse proxy -> Fire

I am trying to setup a reverse proxy to my firewall through my internal webserver.

WAN -开发者_如何转开发> port 80 (rewrite to port 443) -> Internal Webserver -> Virtualhost -> Reverse proxy -> Firewall

This is my config:

ProxyRequest Off
ProxyPreserveHost Off

ProxyPass /firewall/ http://192.168.1.1/

<Location /firewall/>
ProxyPassReverse /
ProxyHTMLURLMap / /firewall/
</Location>

When I visit the site I still have images which are like this:

/themes/image.png

Which then points to https://subdomain.bla.com/themes/image.png

What I need is them to be:

/firewall/themes/image.png 

Which then points to: https://subdomain.bla.com/firewall/themes/image.png


Try adding the following:

 ProxyHTMLURLMap http://192.168.1.1  /firewall

below the ProxyPass directive.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号