我想在子文件夹配置中运行应用程序 Mattermost,例如
https://www.example.com/mattermost/ https://www.example.com/mattermost/
location /mattermost/ {
gzip off;
proxy_set_header X-Forwarded-Ssl on;
client_max_body_size 50M;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://localhost:8065/;
}
通过此配置,我将传递到正确的应用程序,但该应用程序无法识别该子文件夹。它尝试服务器
https://www.example.com/static/style.css https://www.example.com/static/style.css代替https://www.example.com/mattermost/style.css https://www.example.com/mattermost/style.css并提示 404 错误。
如何使用 nginx 将子文件夹传递给反向代理?
我想要运行的应用程序是“Mattermost”。我现在可以确认,该版本无法用作子文件夹
Mattermost 团队版版本:3.0.0 (3.0.3)
更多信息:
http://forum.mattermost.org/t/blank-page-when-installing-mattermost-with-nginx-proxy-pass-as-subdirectory/1604/8 http://forum.mattermost.org/t/blank-page-when-installing-mattermost-with-nginx-proxy-pass-as-subdirectory/1604/8
更新:正如上面论坛所确认的,Mattermost 目前无法进行子文件夹配置。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)