Nginx 重定向到不同的 ip:port/path for Alfresco Share

问题描述

我需要帮助来使用 Nginx 配置我的公司反向代理。 我在 docker 上安装了 Alfresco,它在 8080 端口和 /share 路径下运行:

http://alfresco_ip:8080/share

我创建了一个 DNS 名称,用于使用 Nginx 连接到另一台机器:

intranet.domain.local -> http://proxy_ip

我需要重定向

http://proxy_ip 到 http://alfresco_ip:8080/share。

如果我使用proxy_pass http://alfresco_ip:8080/share,重定向指向http://alfresco_ip/share 没有8080端口。

这是我的配置:

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        server_name intranet.domain.local;

        location / {
                proxy_pass http://alfresco_ip:8080/share;
        }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)