You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
求助~~·nginx sni 分流,现在网站能正常打开,vless一直报错,没看明白error log 的问题出在哪
我的nginx 配置
....
stream
{
map $ssl_preread_server_name $stream_name {
mysite.com web1;
www.mysite.com web2;
vless.mysite.com vless;
}
upstream vless {
server 127.0.0.1:300 #服务端1
}
upstream web1 {
server 127.0.0.1:10002;
}
upstream web2 {
server 127.0.0.1:10003;
}
server {
listen 443 reuseport;
listen [::]:443 reuseport;
proxy_pass $stream_name;
ssl_preread on;
proxy_protocol on;
}
}
vhost配置了web1和web2,能正常开网站。
服务器v2ray配置
{
"inbounds": [
{
"port": 300,
"listen":"127.0.0.1",
"protocol": "vless",
"settings": {
"clients": [
{
"id": "id",
"level": 0
}
],
"decryption": "none",
"fallbacks": [
{
"dest": "81"
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tcpSettings": {
"acceptProxyProtocol": true
},
"tlsSettings": {
"alpn": [
"http/1.1"
],
"certificates": [
{
"certificateFile": "cer",
"keyFile": "key"
}
]
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
]
}
vhost 配置了81端口
客户端的配置是
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "vless.mysite.com",
"port": 443,
"users": [
{
"id": "id",
"encryption": "none",
"level": 0
}
]
}
]
},
"tag": "Proxy",
"streamSettings": {
"network": "tcp",
"security": "tls"
}
},
{
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv4"
},
.......
看nginx和v2ray的状态,都是正常的
设置了vless的A类dns解析,vless.mysite.com 打开是lnmp的安装成功页面,而不是我的vhost中81端口的页面,不知道为啥?
同时,客户端error log没有东西,access有,比如:2021/04/04 23:13:13 tcp:127.0.0.1:13698 accepted tcp:clients2.google.com:443 [Proxy],但实际上Google并没有被打开。
求助,问题可能出在哪了,现在没什么头绪了
Beta Was this translation helpful? Give feedback.
All reactions