嘟嘟社区

[美国VPS] 求助各位mjj们,怎样实现nginx和王卡定向免流80端口共存?


在网上搜索了相关教程,自己按照教程配置nginx,能上网,但是不能免流,走的不是定向流量。有没有大佬指点一下怎么配置?万分感谢。

附上我的nginx配置代码:

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

    root /var/www/html;
    index index.nginx-debian.html;
    server_name short.weixin.qq.com;

    location /ltml {
        proxy_redirect off;
        proxy_pass http://127.0.0.1:10010;  
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;
    }

    location / {

        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ =404;
    }
}