mirror of
				https://github.com/XTLS/Xray-examples.git
				synced 2025-11-04 11:55:34 +08:00 
			
		
		
		
	Update nginx.conf
This commit is contained in:
		@@ -12,10 +12,11 @@ server {
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	# 在 location 后填写 /你的 path
 | 
						# 在 location 后填写 /你的 path
 | 
				
			||||||
	location /你的 path {
 | 
						location /你的 path {
 | 
				
			||||||
		if ($http_upgrade != "websocket") {
 | 
						if ($http_upgrade != "websocket") {
 | 
				
			||||||
			return 404;
 | 
							return 404;
 | 
				
			||||||
		}
 | 
						}
 | 
				
			||||||
        proxy_pass http://unix:/dev/shm/Xray-VLESS-WSS-Nginx.socket;
 | 
					        proxy_pass http://unix:/dev/shm/Xray-VLESS-WSS-Nginx.socket;
 | 
				
			||||||
 | 
						proxy_redirect off;
 | 
				
			||||||
        proxy_http_version 1.1;
 | 
					        proxy_http_version 1.1;
 | 
				
			||||||
        proxy_set_header Upgrade $http_upgrade;
 | 
					        proxy_set_header Upgrade $http_upgrade;
 | 
				
			||||||
        proxy_set_header Connection "upgrade";
 | 
					        proxy_set_header Connection "upgrade";
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user