OpenLiteSpeed x Appwrite

#1
I'm trying to host Appwrite as a reverse proxy behind my website at https://appwrite.zachhandley.com -- It works, and hosts, but the headers are wrong (needs ProxyPreserveHost On) and web sockets don't work either. My current config is this


ReWriteCond %{HTTPS} !=on
REWRITERULE ^(.*)$ HTTP://appwritehttp/$1 [P,L,E=PROXY-HOST:APPWRITE.ZACHHANDLEY.COM]
REWRITERULE ^(.*)$ HTTPS://appwritehttps/$1 [P,L,E=PROXY-HOST:APPWRITE.ZACHHANDLEY.COM]

ReWriteCond %{HTTP:Connection} Upgrade [NC]
ReWriteCond %{HTTP:Upgrade} =websocket [NC]

Context Rule
uri: /
127.0.0.1:6943
RequestHeader set X-Forwarded-Proto "https"
ProxyPreserveHost On
ProxyPassReverseCookieDomain 127.0.0.1 appwrite.zachhandley.com

Websocket Proxy Rule
uri: /
127.0.0.1:6943
 
Top