无法在反向代理上查看图像

Unable to view images on reverse proxy

我在本地虚拟机上配置了反向代理,并在以下 IP 地址 192.168.0.203(在本地网络上)上安装了 WebLogic 服务器。 我在 httpd.conf

上输入了以下详细信息

<VirtualHost 127.0.0.1:80>
     ServerName www.nikhilesh.com
     ServerAlias nikhilesh.com
     ErrorLog /var/log/httpd/error_log
     TransferLog /var/log/httpd/access_log

     <Location />
    ProxyPass  http://xxxxxxxx.xxxxx.com:7001/console/ retry=0
    ProxyPassReverse  http://xxxxxxx.xxxxx.com:7001/console/
    ProxyHTMLURLMap   http://xxxxxxx.xxxxxx.com:7001/console/
    RequestHeader    unset  Accept-Encoding
    #ProxyRequests off
    ProxyHTMLEnable On
    SetOutputFilter proxy-html
    ProxyHTMLDoctype XHTML
    ProxyHTMLStripComments on
    SetEnv force-proxy-request-1.0 1
    SetEnv proxy-nokeepalive 1
     </Location>

#ProxyPreserveHost On
</VirtualHost>

我在主机文件中输入了以下详细信息

192.168.0.203   xxxxxxx.xxxxxx.com    xxxxxx

我已经重启了服务器 我在它显示的浏览器上输入了以下地址(www.nikhilesh.com/)

其实应该显示

当我输入凭据并单击登录按钮时 它显示以下错误

WebLogic 管理控制台假定上下文路径为 /console 并且 ProxyHTMLURLMap 可能不会过滤所有 URL,我敢打赌它会错过 CSS 文件中链接的资源。

尝试将您的位置指令设置为 /console(并在使用浏览器进行测试时使用 /console)。或者,尝试将管理控制台的域配置中的 "console context path" 设置为空值 - 尽管我不确定是否允许这样做。