Help:Setting Up a Web Server External Application
OpenLiteSpeed can be set up as a transparent reverse proxy to any backend web server or application server that supports HTTP. Adding OpenLiteSpeed as a reverse proxy in front of a server can help increase the performance or security of a system. OpenLiteSpeed proxies to other servers by setting them as external applications. This article goes through how to set up a web server external application.
Once you have set up your web server external application, you will have to set which traffic OpenLiteSpeed should send to that external application. This can be done in a number of ways: via rewrite rules, contexts, or script handlers. These different methods each have their own strong points and are explained in their own separate articles.
Create a web server external application at the server or virtual host level
- WebAdmin console => Configuration => Server => External App => Add => Type => Web Server
The most important setting is Address. Your backend server will need to be set to listen on this address and port. For simplicity, we've set our copy of Apache to listen on port 8080.
Now you have OpenLiteSpeed ready to proxy to your backend server. But OpenLiteSpeed doesn't know what traffic to send to this external application. As noted above, you can determine what traffic to send with rewrite rules, contexts, or script handlers. These different methods each have their own strong points and are explained in their own separate articles.
Note: If you are using IP-based virtual hosting, you will need to set up a different web server external application for each vhost, as each web server external application only reroutes traffic to a single IP address.