在 Apache 代理反向中从重定向 URL 传递多个参数
Pass Multiple Parameters From Redirect URL In Apache Proxy Reverse
我正在 运行 开发一个利用 laravel-echo-server 的应用程序。所以对我来说 运行 它在我的生产服务器上 https
我需要使用 apache 代理反向将我的 /tools/socket.io/
url 重定向到 http://localhost:6001
.
虽然工作正常,但我不断收到此错误 Cannot Post /
,因为我需要将参数从我的域 url 传递到我的反向代理 url。
这是我的 Apache 配置:
ProxyPreserveHost On
ProxyRequests off
ProxyPass /tools/socket.io/ http://localhost:6001/
ProxyPassReverse /tools/socket.io/ http://localhost:6001/
我遇到了这个 post 但这个实现对我不起作用。
这是我需要传递的参数,它们的值是动态的 EIO
transport
t
。我的 url 就像
https://exampledomain.com/tools/socket.io/?EIO=3&transport=polling&t=Ml8lZDJ
这是我的域的 SSL 虚拟主机中的 apaxhe 配置:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:6001/ [P,L]
ProxyPass /socket.io http://localhost:6001/socket.io
ProxyPassReverse /socket.io http://localhost:6001/socket.io
我正在 运行 开发一个利用 laravel-echo-server 的应用程序。所以对我来说 运行 它在我的生产服务器上 https
我需要使用 apache 代理反向将我的 /tools/socket.io/
url 重定向到 http://localhost:6001
.
虽然工作正常,但我不断收到此错误 Cannot Post /
,因为我需要将参数从我的域 url 传递到我的反向代理 url。
这是我的 Apache 配置:
ProxyPreserveHost On
ProxyRequests off
ProxyPass /tools/socket.io/ http://localhost:6001/
ProxyPassReverse /tools/socket.io/ http://localhost:6001/
我遇到了这个 post
这是我需要传递的参数,它们的值是动态的 EIO
transport
t
。我的 url 就像
https://exampledomain.com/tools/socket.io/?EIO=3&transport=polling&t=Ml8lZDJ
这是我的域的 SSL 虚拟主机中的 apaxhe 配置:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:6001/ [P,L]
ProxyPass /socket.io http://localhost:6001/socket.io
ProxyPassReverse /socket.io http://localhost:6001/socket.io