This is an old revision of the document!
LiteSpeed Web Server as a Proxy
The purpose of a Proxy is to expand on functionality and add an extra layer of security.
This wiki explains how to set up LiteSpeed Web Server (LSWS) as a Proxy. This makes it possible to transform a URL that is usually just an IP and Port into a Fully Qualified Domain Name.
In control panel environment, such as cpanel, you may have used Apache mod_proxy directives. LiteSpeed can work with Mod_Proxy though it does require to manually add an external app to LSWS configure to make it fully work.
How does LSWS act as a Proxy and handle client requests meant for a Backend Server?
- First the client sends a request to LiteSpeed Web Server.
- LSWS then forwards that request to the backend server.
- The backend server will then send a response back to LSWS.
- Finally, LSWS responds back to the Client acting as if there was no backend server.
How To's
Control Panel environment
Use mod_proxy directive with LSWS | How to make apache mod_proxy work with LSWS in control panel environment |
LSWS native configuration
Proxy as a Context | How to setup LiteSpeed Web Server as a Proxy via Contexts |
Proxy as a RewriteRule in navie LSWS | How to setup Native LiteSpeed Web Server as a Proxy via Rewrite Rules |
Please also refer to How to setup LSWS as reverse proxy.