V2Ray 流量转发配置
Caddy 配置 修改Caddyfile文件 yourdomian.com { tls youremail@gmail.com proxy /www localhost:8990 { websocket header_upstream -Origin } } Apache 配置一 编辑/usr/local/apache/conf/vhost目录下yourdomian.com.conf文件,将 443 端口配置修改为 <VirtualHost *:443> ServerAdmin youremail@gmail.com ServerName yourdomian.com ServerAlias yourdomian.com SSLEngine On RewriteEngine On RewriteCond %{HTTP:Upgrade} =websocket [NC] RewriteRule /(.*) ws://localhost:8990/$1 [P,L] RewriteCond %{HTTP:Upgrade} !=websocket [NC] RewriteRule /(.*) http://localhost:8990/$1 [P,L] SSLProxyEngine On Proxypass /www http://127.0.0.1:8990 ProxyPassReverse /www http://127.0.0.1:8990 SSLCertificateFile /etc/letsencrypt/live/yourdomian.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/yourdomian.com/privkey.pem </VirtualHost> 以上……