飞天 发表于 2024-7-9 11:15:01

9.0.103 nginx映射活字格系统到公网不能访问

本帖最后由 飞天 于 2024-7-9 11:24 编辑

企业内部的一个应用,用nginx映射到公网上面,外网访问就显示404错误,找不到文件或目录
请教活字格是不是需要特别的配置?

活字格服务器:A01
nginx服务器:B01

      location /external/ {
            access_loglogs/access.logmain;
            proxy_pass http://A01:8080/external/;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

            proxy_cache_bypass $http_upgrade;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
      }
在内网访问这个页面是正常的:http://A01:8080/External/GeneratorElectronicManual
外网打开404错误:http://域名/external/GeneratorElectronicManual


飞天 发表于 2024-7-9 11:25:48

是我自已搞错了
版本能删的话就帮我删了吧

Lay.Li 发表于 2024-7-9 16:35:43

大佬,问题解决了就好,方便的话也可以分享一下解决方法供大家参考参考:i0tw2:
页: [1]
查看完整版本: 9.0.103 nginx映射活字格系统到公网不能访问