LiteSpeed Web Server can be used as a transparent reverse proxy server running in front of any web server or application server that supports HTTP protocol, to help improve the scalability, performance and security of the whole system.
Please set up in the WebAdmin console according to the following steps:
1.Define an External Application with Type Web Server . Set Address to the IP address and port used by the backend web server.
2.Two choices:
◦Define a Proxy Context with Web Server set to the External Application just defined.
◦Define a Script Handler with Type Web Server , and Handler Name set to the External Application just defined.
For example, you may want to have Apache with mod_perl to handle Perl scripts instead of running them as CGI, assuming Apache is running on the same server machine on port 8080, pointing to the same Document Root .
First, define an External Application , set Type to Web Server , Name to ApachePerl and Address to localhost:8080 .
Then define a Script Handler , set Suffix to pl , Type to Web Server and Handler Name to ApachePerl .
——————litespeed 反向代理————
1.在Web Server 里的External添加一个新规则,填入名称和目的“IP:80”这样的地址
2.新建一个虚假主机(包括设定配置目录等)然后再80端口listen里添加这个域名。
3.在这个虚假主机面板里的Context里添加一个Proxy规则,第一个填写/,表示所有路径
然后添加第一步里建立的规则。
4.保存后重启Litespeed,!当这个域名指向这个服务器的时候即可代理访问目的IP~
——————————