Protocol Upgrade
- Since Apache HTTP Server 2.4.47, protocol Upgrade (tunneling) can be handled
- end-to-end by mod_proxy_http using the ProxyPass
- parameter upgrade.
- End-to-end means that the HTTP Upgrade request from the client/browser is first
- forwarded by mod_proxy_http to the origin server and the connection
- will be upgraded (and tunneled by mod_proxy_http) only if the origin
- server accepts/initiates the upgrade (HTTP response 101 Switching Protocols
).
- If the origin server responds with anything else mod_proxy_http
- will continue forwarding (and enforcing) the HTTP protocol as usual for this
- connection.
- Example
-
-ProxyPass "/some/http/or/ws/path/" "http://example.com/some/http/or/ws/path/" upgrade=websocket
-
-
- For Apache HTTP Server 2.4.46 and earlier (or if
- ProxyWebsocketFallbackToProxyHttp
- from 2.4.48 and later disables mod_proxy_http handling), see the
- documentation of mod_proxy_wstunnel for how to proxy the WebSocket
- protocol.
+ Since Apache HTTP Server 2.4.47, protocol Upgrade (tunneling) can be handled
+ end-to-end by mod_proxy_http using the ProxyPass
+ parameter upgrade.
+ End-to-end means that the HTTP Upgrade request from the client/browser is first
+ forwarded by mod_proxy_http to the origin server and the connection
+ will be upgraded (and tunneled by mod_proxy_http) only if the origin
+ server accepts/initiates the upgrade (HTTP response 101 Switching Protocols
).
+ If the origin server responds with anything else mod_proxy_http
+ will continue forwarding (and enforcing) the HTTP protocol as usual for this
+ connection.
+ See Websocket Upgrade (2.4.47 and later) for an example of
+ configuration using mod_proxy_http.
+ For Apache HTTP Server 2.4.46 and earlier (or if
+ ProxyWebsocketFallbackToProxyHttp
+ from 2.4.48 and later disables mod_proxy_http handling), see the
+ documentation of mod_proxy_wstunnel for how to proxy the WebSocket
+ protocol.
diff --git a/docs/manual/mod/mod_proxy_wstunnel.xml b/docs/manual/mod/mod_proxy_wstunnel.xml
index e638ae03304..2f726349c3c 100644
--- a/docs/manual/mod/mod_proxy_wstunnel.xml
+++ b/docs/manual/mod/mod_proxy_wstunnel.xml
@@ -31,8 +31,8 @@