美文网首页
nginx代理nexus的正确写法

nginx代理nexus的正确写法

作者: 蓝猫大哥丶 | 来源:发表于2021-01-28 16:58 被阅读0次
server {
    listen       9124;
    server_name nexus.xxx.com;

    location / {
        proxy_pass http://192.168.50.93:8081;
        proxy_connect_timeout 600;
        proxy_read_timeout 600;

        proxy_redirect  off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        access_log off;
        }
}

不然会出现nexus页面一直在初始化和跨域的错误。

相关文章

网友评论

      本文标题:nginx代理nexus的正确写法

      本文链接:https://www.haomeiwen.com/subject/xpkxtltx.html