Table of Contents

Configuration How-Tos

This section of the wiki provides articles on configuring LiteSpeed Web Server to achieve desired functionality, better performance, or security. These wikis do not cover what each LSWS setting does. That information can be found in our documentation.

Also LiteSpeed Cache, LiteMage Cache, PHP, and other external applications (Python, Ruby, etc.) are covered in their own sections of the wiki and are not included here.

Most of the time, users may use LSWS in a control panel environment and LSWS will read and run based on Apache configuration. You can also configure LSWS to read your existing Apache configuration if you have a working Apache server running without a control panel. In these scenarios, users may continue to set up everything in Apache, the same way as before.

Sometimes, users may run LSWS natively without a control panel. In this case, users can check LSWS native configuration through LSWS Admin Console.

Basic Command Reference

Please see Quick Reference for All Commands.

Understanding Apache Configuration

Why do you need to understand Apache configuration if you are using LSWS Web Server?

LiteSpeed is a drop-in replacement in a control panel environment, which means that LiteSpeed can read Apache configuration files and run LSWS based on Apache's settings. Most of the time, configuration changes on Apache will reflect directly on LSWS as well.

LiteSpeed's implementation of Apache functionality includes (but is not limited to) the following Apache modules. This list is gradually expanding as new feature requests are implemented:

mod_access, mod_actions, mod_alias, mod_auth, mod_auth_ldap, mod_auth_passthrough, mod_autoindex, mod_cache, mod_cgi, mod_expires, mod_fastcgi, mod_frontpage, mod_geoip, mod_gzip/mod_deflate, mod_jk, mod_mime, mod_php, mod_proxy, mod_rewrite, mod_security, mod_ssl, mod_suexec, and mod_throttle.

LiteSpeed Web Server also uses the same syntax as Apache for distributed configuration file (.htacess) and URL rewrite rules.

Please check|Apache documentation]] for information about configuring Apache.

LSWS Native Configurations

New: LSWS 5.3 features Highlight

Performance Tips





Header Settings


LSWS Built in Anti-DDoS Protection

HTTPS/SSL Configuration


Streaming Media


Miscellaneous Customization

Troubleshooting errors

Setup LSWS as load balancer

Unsupported Apache modules or directives

LSWS native: Virtual Hosting


Custom Templates

Custom templates can be used to make LSWS virtual hosts, and simultaneously prepare them for popular web applications and plugins. All templates use LiteSpeed native configurations. Templates are unnecessary if you are migrating an existing site with web applications from Apache.