mack-a / v2ray-agent

Xray、Tuic、hysteria2、sing-box 八合一一键脚本
https://www.592083.xyz
GNU Affero General Public License v3.0
14.28k stars 4.62k forks source link

安装时指定的非443端口无效 #565

Closed dario-github closed 1 year ago

dario-github commented 1 year ago

请仔细填写每一项,并回复自己详细的错误信息

1.问题描述 安装时已指定554端口,但v2rayN无法连接,查看nginx错误日志发现仍然在请求443端口

2.安装失败的错误内容或者截图 v2ray节点延迟及测速

image

Nginx错误日志及监听日志

k.ml"
2023/03/07 23:55:00 [error] 2278479#2278479: *131 open() "/etc/nginx/html/adowvws" failed (2: No such file or directory), client: 172.70.211.60, server: _, request: "GET /adowvws HTTP/1.1", host: "proxy.dariolink.ml"
2023/03/07 23:55:00 [error] 2278479#2278479: *132 open() "/etc/nginx/html/adowvws" failed (2: No such file or directory), client: 172.69.34.20, server: _, request: "GET /adowvws HTTP/1.1", host: "proxy.dariolink.ml"

162.158.166.63 - - [07/Mar/2023:23:59:38 +0000] "GET /adowvws HTTP/1.1" 404 153 "-" "Go-http-client/1.1" "60.186.155.148"
172.69.134.97 - - [07/Mar/2023:23:59:38 +0000] "GET /adowvws HTTP/1.1" 404 153 "-" "Go-http-client/1.1" "60.186.155.148"

通过脚本指定的端口

image

nginx配置

user  nginx;
worker_processes  auto;

error_log  /var/log/nginx/error.log notice;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;

    server {
        listen 443 ssl;
        server_name _;

        ssl_certificate /etc/nginx/ssl/wx.dariolink.ml.pem;
        ssl_certificate_key /etc/nginx/ssl/wx.dariolink.ml.key;

        location /wx {
            proxy_pass http://127.0.0.1:8080;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    }
}

3.系统版本 Linux vultr.guest 5.4.0-132-generic #148-Ubuntu SMP Mon Oct 17 16:02:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

4.脚本版本 2.7.7

5.核心类型及版本 1.7.5

image
dario-github commented 1 year ago

xray确实在监听554端口

image image

但不知道为什么v2rayN联不通,以及nginx的错误日志是哪里发起的请求

mack-a commented 1 year ago

建议卸载后重新安装(包括nginx,这个需要手动),然后端口尽量选择大于1000的。不要手动添加nginx 配置,再进行尝试

gnuhpc commented 1 year ago

image

gnuhpc commented 1 year ago

OS全新安装,选择了8888,v2ray全套安装,端口出来是没有的,OS重装两遍了,疑似有bug。

gnuhpc commented 1 year ago

v2ray-agent-2.7.2 没问题,亲你看看你在更新REALITY的几次commit是不是有bug,感谢