View Single Post
  #2  
Old 01-03-2011, 10:11 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Here is the document:

http://www.litespeedtech.com/how-tos.html#qa_sproxy

How to set up LiteSpeed Web Server as a reverse proxy server?

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:
Define an External Application with Type Web Server. Set Address to the IP address and port used by the backend web server.
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.

If customer application is setup as name based vhost(need host header matches with server name), proxy request "Host" header needs to be modified in rewrite rule. Here is how:

say web site domain name is "www.example.com", it proxy request to backend, backend is defined as a web server with name "node1", it requires domain name to be "node1.example.com", the rewrite rule (web admin console->Configuration->Virtual Hosts->www.example.com->Rewrite) should be
^/(.*)$ http://node1/$1 [P,E=Proxy-Host:node1.example.com]
Reply With Quote