Reverse proxy not working.

#1
Im using this link to try make working https://openlitespeed.org/kb/reverse-proxy-basics/ have access to have access my API

I have one public ip and 2 web servers running on different virtual systems.
Server A with openlitespeed and server B with nginx, so I'm trying to use reverse proxy to make me able to access the website on server B.

First I got WebAdmin console => Server Configuration => External App => Add => Type => Web Server

Name: test
Address: 192.168.88.223
Second I got WebAdmin console > Virtual Hosts > Add

Virtual Host Name: proxy-vhost
Virtual Host Root: $SERVER_ROOT/proxy/
Config File: $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf
Max Keep-Alive Requests: 1000
Follow Symbolic Link: No
Enable Scripts/ExtApps: No
Restrained: Yes

and...

WebAdmin console > Virtual Hosts > proxy-vhost > Rewrite
Set Enable Rewrite to YES


REWRITERULE ^(.*)$ HTTPS://test/$1 [P,L,E=PROXY-HOST:newmail.blackforthosting.com]

to finish, WebAdmin console > Listeners > your listeners > Virtual Host Mappings > Add
Virtual Host: proxy-vhost
Domain: newmail.blackforthosting.com

but when I call https://newmail.blackforthosting.com on browser I aways got error 404, what I doing wrong?

Also it says that the virtual host is stopped.
1716293378688.png
 
Last edited:
Top