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.

Control Panel environment

Use mod_proxy directive with LSWSHow to make apache mod_proxy work with LSWS in control panel environment

LSWS native configuration

Web Proxy as a ContextHow to setup LiteSpeed Web Server as a Proxy via Contexts
Web Proxy as a RewriteRule in native LSWSHow to setup Native LiteSpeed Web Server as a Proxy via Rewrite Rules
WebSocket proxyHow to setup LiteSpeed Web Server as a WebSocket Proxy

Please also refer to How to setup LSWS as reverse proxy.

  • Admin
  • Last modified: 2018/01/19 19:39
  • by Jackson Zhang