Coder Social home page Coder Social logo

VLESS over TCP with TLS + 回落(最强配置) 更新为VLESS 1.5后 nginx 反代其它网站,不能打开了 about v2ray-examples HOT 9 CLOSED

 avatar commented on June 18, 2024
VLESS over TCP with TLS + 回落(最强配置) 更新为VLESS 1.5后 nginx 反代其它网站,不能打开了

from v2ray-examples.

Comments (9)

RPRX avatar RPRX commented on June 18, 2024

提供下 v2ray 配置。

from v2ray-examples.

 avatar commented on June 18, 2024

提供下 v2ray 配置。

{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "*******************************************************",
"level": 0
}
],
"decryption": "none",
"fallbacks": [
{
"dest": "/dev/shm/default.sock",
"xver": 1
},
{
"alpn": "h2",
"dest": "/dev/shm/h2c.sock",
"xver": 1
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": [
"h2",
"http/1.1"
],
"certificates": [
{
"certificateFile": "/etc/ssl/private/loveliveallstar.cer",
"keyFile": "/etc/ssl/private/loveliveallstar.key"
}
]
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}

from v2ray-examples.

RPRX avatar RPRX commented on June 18, 2024

试试 reboot。

from v2ray-examples.

 avatar commented on June 18, 2024

我试过reboot许多次了,都是不行

chrome访问我的域名

显示是

无法访问此网站*********************** 意外终止了连接。
请试试以下办法:

检查网络连接
检查代理服务器和防火墙
运行 Windows 网络诊断

ERR_CONNECTION_CLOSED

from v2ray-examples.

RPRX avatar RPRX commented on June 18, 2024

确定 nginx 正常运行吗?

from v2ray-examples.

 avatar commented on June 18, 2024

确定 nginx 正常运行吗?

我用nginx -t命令测试了 nginx 配置文件是显示OK的
然后用reboot重启,让配置文件生效。再访问我的域名,就那样打不开。

我用http 访问域名,能正常跳转到https上。我觉得nginx服务应该是正常的。

我打了systemctl status nginx 命令看nginx应该正常工作的中。

root@host:~# systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-09-05 11:32:33 EDT; 2min 19s ago
Docs: man:nginx(8)
Process: 607 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 583 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 608 (nginx)
Tasks: 2 (limit: 564)
CGroup: /system.slice/nginx.service
├─608 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
└─609 nginx: worker process

Sep 05 11:32:33 host.localdomain systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 05 11:32:33 host.localdomain systemd[1]: Started A high performance web server and a reverse proxy server.

from v2ray-examples.

RPRX avatar RPRX commented on June 18, 2024

试试去掉这一行 set_real_ip_from 127.0.0.1;

如果仍然不行的话,试试两个 listen 分开写

from v2ray-examples.

RPRX avatar RPRX commented on June 18, 2024

(删除了一条重复的配置信息,比较长

from v2ray-examples.

 avatar commented on June 18, 2024

试试去掉这一行 set_real_ip_from 127.0.0.1;

如果仍然不行的话,试试两个 listen 分开写

不好意思。我查到原因了。

先谢谢大佬深夜这么快的回复。

原因是我忘记更新服务器上的V2ray为4.27.5了。
只修改了nginx和v2ray的配置文件。

解决了。再次感谢大佬。你的配置文件没问题。

from v2ray-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.