diff --git a/VLESS-TCP-TLS-proxy protocol/config_server.json b/VLESS-TCP-TLS-proxy protocol/config_server.json index cfd31e9..bde7f45 100644 --- a/VLESS-TCP-TLS-proxy protocol/config_server.json +++ b/VLESS-TCP-TLS-proxy protocol/config_server.json @@ -15,16 +15,27 @@ "email": "love@v2fly.org" } ], - "fallback": { - "addr": "127.0.0.1", - "port": 8001, - "xver": 1 - }, - "fallback_h2": { - "addr": "127.0.0.1", - "port": 8002, - "xver": 1 - }, + "fallbacks": [ + { + "dest": 8001, + "xver": 1 + }, + { + "path": "/testing", + "dest": "127.0.0.1:8003", + "xver": 1 + }, + { + "path": "/tested", + "dest": "127.0.0.1:8004", + "xver": 1 + }, + { + "alpn": "h2", + "dest": "8002", + "xver": 1 + } + ], "decryption": "none" }, "streamSettings": { diff --git a/VLESS-TCP-TLS-proxy protocol/nginx.conf b/VLESS-TCP-TLS-proxy protocol/nginx.conf index c9b01fd..2ce3c3c 100644 --- a/VLESS-TCP-TLS-proxy protocol/nginx.conf +++ b/VLESS-TCP-TLS-proxy protocol/nginx.conf @@ -54,6 +54,44 @@ http { error_page 500 502 503 504 /50x.html; } + server { + listen 127.0.0.1:8003 proxy_protocol; + server_name yourserver_8003.com; + + set_real_ip_from 192.168.1.0/24; + + charset utf-8; + + access_log logs/yourserver_8003.access.log main; + + location /testing { + root /var/www/html/testing; + } + + error_page 404 /404.html; + + error_page 500 502 503 504 /50x.html; + } + + server { + listen 127.0.0.1:8004 proxy_protocol; + server_name yourserver_8004.com; + + set_real_ip_from 192.168.1.0/24; + + charset utf-8; + + access_log logs/yourserver_8004.access.log main; + + location /tested { + root /var/www/html/tested; + } + + error_page 404 /404.html; + + error_page 500 502 503 504 /50x.html; + } + server { listen 127.0.0.1:8002 http2 proxy_protocol; server_name yourserver_8002.com; diff --git a/VLESS-TCP-TLS/config_server.json b/VLESS-TCP-TLS/config_server.json index 647e10e..a3431f9 100644 --- a/VLESS-TCP-TLS/config_server.json +++ b/VLESS-TCP-TLS/config_server.json @@ -15,16 +15,19 @@ "email": "love@v2fly.org" } ], - "fallback": { - "addr": "127.0.0.1", - "port": 8001, - "xver": 0 - }, - "fallback_h2": { - "addr": "127.0.0.1", - "port": 8002, - "xver": 0 - }, + "fallbacks": [ + { + "dest": 8001 + }, + { + "path": "/testing", + "dest": "127.0.0.1:8003" + }, + { + "path": "/tested", + "dest": "127.0.0.1:8004" + } + ], "decryption": "none" }, "streamSettings": { @@ -33,7 +36,6 @@ "tlsSettings": { "serverName": "example.domain", "alpn": [ - "h2", "http/1.1" ], "certificates": [ diff --git a/VLESS-TCP-TLS/nginx.conf b/VLESS-TCP-TLS/nginx.conf index 15d4740..e1b4b40 100644 --- a/VLESS-TCP-TLS/nginx.conf +++ b/VLESS-TCP-TLS/nginx.conf @@ -50,15 +50,32 @@ http { } server { - listen 127.0.0.1:8002 http2; - server_name yourserver_8002.com; + listen 127.0.0.1:8003; + server_name yourserver_8001.com; charset utf-8; - access_log logs/yourserver_8002.access.log main; + access_log logs/yourserver_8003.access.log main; - location / { - root /var/www/html; + location /testing { + root /var/www/html/testing; + } + + error_page 404 /404.html; + + error_page 500 502 503 504 /50x.html; + } + + server { + listen 127.0.0.1:8004; + server_name yourserver_8001.com; + + charset utf-8; + + access_log logs/yourserver_8004.access.log main; + + location /tested { + root /var/www/html/tested; } error_page 404 /404.html; diff --git a/VLESS-TCP/config_server.json b/VLESS-TCP/config_server.json index 0dd816f..7d9f9db 100644 --- a/VLESS-TCP/config_server.json +++ b/VLESS-TCP/config_server.json @@ -15,16 +15,11 @@ "email": "love@v2fly.org" } ], - "fallback": { - "addr": "127.0.0.1", - "port": 8001, - "xver": 0 - }, - "fallback_h2": { - "addr": "127.0.0.1", - "port": 8002, - "xver": 0 - }, + "fallbacks": [ + { + "dest": 8000 + } + ], "decryption": "none" }, "streamSettings": {