NGINX reverse proxy header to openlitespeed

#1
how i can add NGINX reverse proxy header to openlitespeed ?

NGINX:
location / {

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "upgrade";

proxy_set_header Host $host;



proxy_set_header CF-Conncting-IP $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Host $host:$server_port;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

}
 
Last edited:
#2
I tried translating it from NGINX to Apache but it didn't work

Apache config:
RequestHeader set Upgrade %{HTTP:Upgrade}
RequestHeader set Connection "upgrade"
RequestHeader set Host %{HTTP_HOST}

RequestHeader set CF-Connecting-IP %{X-Forwarded-For}
RequestHeader set X-Forwarded-Host %{HTTP_HOST}:%{SERVER_PORT}
RequestHeader set X-Forwarded-For %{X-Forwarded-For}
RequestHeader set X-Forwarded-Proto "%{REQUEST_SCHEME}
 
#4
Thank you very much for the reply but I followed these instructions and it didn't work for me.

What I'm trying to do is run "MeshCentral" on the "Docker" container, as the container runs via port 4430, and "MeshCentral" inside the container via port 443, so I transfer "https://meshcentral.mydomain.com/" via port 443 to the container port. 4430.

The problem here is that this step requires adding a “header” instruction during the “reverse proxy,” according to this video:

 
Top