Apache2 proxy reverse

Please can someone using Theia with an apache reverse proxy send me their configuration, it’s been more long hours than I try to make it work: '(

[original thread by samos667]

[Elliott.Wen]

I used nginx. It is supposed to be more performant than Apache (or just imagination).

[Elliott.Wen]

location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

[Elliott.Wen]

map $http_upgrade $connection_upgrade {
default upgrade;
‘’ close;
}

[Elliott.Wen]

Hope this helps.