Nginx配置文件
location /chen {
proxy_redirect off;
proxy_pass http://127.0.0.1:61668;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
# Show realip in v2ray access.log
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Apache配置文件
</Directory>
<Location "/chen/">
ProxyPass ws://127.0.0.1:61668/chen/ upgrade=WebSocket
ProxyAddHeaders Off
ProxyPreserveHost On
RequestHeader append X-Forwarded-For %{REMOTE_ADDR}s
</Location>
多用户
location /user1/ {
proxy_redirect off;
proxy_pass http://127.0.0.1:60001/;
}
location /user2/ {
proxy_redirect off;
proxy_pass http://127.0.0.1:60002/;
}
V2ray端配置图
如若转载请注明出处: