I’m trying to configure a reverse proxy for a subdomain using OpenLiteSpeed, just like you would with Nginx using proxy_pass. How can I achieve this in OpenLiteSpeed.
I’ve tried many things, but it didn’t work — I keep getting a ‘Page Not Found’ error. I’ll share an example Nginx configuration with you
server {
server_name webchatorg;
root /usr/share/kiwiirc/;
index index.php index.html index.htm;
allow all;
add_header Access-Control-Allow-Origin “*”; irin
add_header Access-Control-Allow-Methods “GET, POST, OPTIONS”;
add_header Access-Control-Allow-Headers “Content-Type, Authorization”;
add_header Access-Control-Allow-Credentials “true”; # Eğer kimlik doğrulama kullanıyorsanız
location /webirc/ {
proxy_pass 127.0.0.1:7778/webirc/;
add_header Last-Modified $date_gmt;
add_header Cache-Control ‘no-store, no-cache’;
#buraya meta girsi
#sonmeta
if_modified_since off;
expires off;
etag off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}