Closed himan85 closed 6 years ago
懂了,谢谢!
我按照这个教程搞的,但也是一直502,请问你最后怎么搞的?可以贴一下现在的配置文件吗
@523860169 我照着楼上的方法试了下,可以的,写下来给你参考。
# Error page
fastcgi_intercept_errors on;
error_page 400 404 /404.html;
location /your-v2ray-path{
access_log off;
proxy_intercept_errors on;
}
access_log
是用来关闭访问日志的,因为v2ray的访问没必要记录日志,否则会产生太多无意义的日志浪费空间。
1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) a:2.33。 2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 a:访问绑定的二级域名时。 3) 你看到的不正常的现象是什么? a:v2ray+tls+ws+nginx,访问绑定的二级域名时bad quest。 4) 你期待看到的正确表现是怎样的? a:希望能在二级域名挂网页,更好的伪装。 5) 请附上你的配置文件(提交 Issue 前请隐藏服务器端IP地址)。 a: nginx配置: ———————————————————————————————————————— user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid;
include /usr/share/nginx/modules/*.conf;
events { worker_connections 1024; }
http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';
}
} ———————————————————————————————————————————— v2ray配置: ———————————————————————————————————————— { "log": { "access": "/var/log/v2ray/access.log", "error": "/var/log/v2ray/error.log", "loglevel": "warning" }, "inbound": { "port": 10000, "listen":"127.0.0.1", "protocol": "vmess",
"settings": { "udp": true, "clients": [ { "id": " ",
"level": 1, "alterId": 80 } ], "default": { "level": 1, "alterId": 32 } }, "streamSettings": { "network": "ws", "security": "auto", "wsSettings": { "connectionReuse": true, "path": "" } } }, "outbound": { "protocol": "freedom", "settings": {}, "mux": { "concurrency": 8, "enabled": false } }, "outboundDetour": [ { "protocol": "blackhole", "settings": {}, "tag": "blocked" } ], "routing": { "strategy": "rules", "settings": { "rules": [ { "type": "field", "ip": [ "0.0.0.0/8", "10.0.0.0/8", "100.64.0.0/10", "127.0.0.0/8", "169.254.0.0/16", "172.16.0.0/12", "192.0.0.0/24", "192.0.2.0/24", "192.168.0.0/16", "198.18.0.0/15", "198.51.100.0/24", "203.0.113.0/24", "::1/128", "fc00::/7", "fe80::/10" ], "outboundTag": "blocked" } ] } } } ————————————————————————————————————————————