您好,使用bt面板的网站模块,缺省的站点配置,开启反向代理时,proxy_redirect 配置问题未达到想要的效果,具体现象如下:配置:
location /mantisbt
{
proxy_pass http://mac.local:8080/;
proxy_redirect http://mac.local:8080/ http://www.test.work/mantisbt1;
proxy_set_header Host mac.local;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
其中,mac.local 在host中配置的内网服务器的IP,内网服务器IP 确定可以访问。
想要达到的效果是,跑了BT面板的服务器,直接反向代理多个 内网服务器提供的站点。通过BT面板服务器,路径的方式访问。
/mantisbt 路径,反向代理的 172.26.206.244:8080 这个内网IP, 想要反向代理重定向的路径是 http://www.test.work/mantisbt1;
请问如何配置 ?或者当前免费版本是否有这个功能 ?多谢!
|
|