You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unable to hide behind apache proxypass, websocket has error #442
ProxyPass is just an argument in the config. Make sure you have the respective apache modules installed to support headers and such.
Here is the command to install the mod_prox module. apt install -y build-essential apt install -y libapache2-mod-proxy-html libxml2-dev a2enmod proxy proxy_ajp proxy_http rewrite deflate headers proxy_connect proxy_html
You will then see a list of modules you can install. Then restart after you have what you need.
Take a look at that; you're missing a few config directives that are causing your websockets to be treated like normal HTTP requests. (Unexpected response code: 200 means that your websocket request is getting a normal web page back.)
Activity
edwinbrowwn commentedon Apr 5, 2019
What modules are are you using with apache?
Don't forget to open port 8443.
peterremote1980 commentedon Apr 5, 2019
I am using ProxyPass module, i confirm 8443 is opened.
edwinbrowwn commentedon Apr 5, 2019
ProxyPass is just an argument in the config. Make sure you have the respective apache modules installed to support headers and such.
Here is the command to install the mod_prox module.
apt install -y build-essentialapt install -y libapache2-mod-proxy-html libxml2-deva2enmodproxy proxy_ajp proxy_http rewrite deflate headers proxy_connect proxy_htmlYou will then see a list of modules you can install. Then restart after you have what you need.
abl commentedon Apr 7, 2019
https://github.com/codercom/code-server/blob/master/doc/self-hosted/index.md#apache-reverse-proxy
Take a look at that; you're missing a few config directives that are causing your websockets to be treated like normal HTTP requests. (
Unexpected response code: 200means that your websocket request is getting a normal web page back.)sr229 commentedon Apr 9, 2019
From first glance your configuration does not support HTTP upgrades, which the websocket needs.
ColdSphinX commentedon Apr 15, 2019
You might want to use rewrite to proxy depending on http upgrade.