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.

Command ReferenceQuick Reference for All Commands
LSWS ConfigLSWS Configuration Items


Security OverviewLiteSpeed web server security overview
Mitigating HTTP-level DDoS AttacksHow to mitigate DDoS attacks with LSWS's security features
Mitigating SYN FloodsHow to harden your kernel against SYN floods
Shared Hosting SecurityAccess Permission isolation
suEXEC ModeProcess UID isolation: CGI/FCGI/LSAPI/PHP
chrootProcess Execution isolation
mod_security CompatibilityApache mod_security 2.5+ compatibility
Atomicorp setup and supportExplanation of Atomicorp's support of LSWS and how to set it up
CloudLinux CageFS How-ToInstallation and Configurations
Setting up HSTSHow to set up HTTP Strict Transport Security
Virtual Host-Level Bandwidth ThrottlingSet different bandwidth limits for different sites
Void CloudFlare IP/Subnet blockingHow to avoid LSWS Anti-ddos blocking CloudFlare IP/subnet connections
How to disable CGI scriptDisable all CGI scripts

HTTPS/SSL Configuration

Create an SSL private keyHow to create a SSL private key
Self Signed SSL CertificateHow to create a self signed SSL certificate
Create a certificate requestHow to create a SSL certificate request for applying a trusted SSL certificate from CA issuer.
Install a SSL certificateHow to install a SSL certificate
Secure web admin consoleHow to secure web administration console with SSL
Redirect to https connectionHow to redirect from plain http connection to secured https connection
OCSP StaplingHow to set up OCSP stapling for faster SSL
Disabling HTTP/2Disabling HTTP/2 per virtual host


Syslog/Splunk LoggerHigh performance logging of litespeed logs to syslog/splunk via udp.
SNMP Monitoring + Cacti GraphingMonitor LiteSpeed real-time metrics via SNMP client and full-Cacti log/graph integration
Server Status + RRD GraphingMonitor LiteSpeed Server Status via RRD Graph
Piped LoggerFlexible logging with piped logger
AWstatsHow to use integrated AWstats log analyzer
New Relic Installation GuideHow to get New Relic to work with LSWS
Real-Time StatisticsReal-Time Statistics in Admin Console
Child process killed, is that normal?How to deal with “Child Process Killed” message in stderr.log


Bug ReportingHow to file a LiteSpeed bug report
Toggle Debug LoggingA feature for quickly switching between normal and very detailed log levels
How to Enable Rewrite LoggingThe first step in debugging rewrite rules
How to Debug my Rewrite RuleThe steps to check the failed rewrite rule

Streaming Media

FLV streamingFlash Video (FLV) Streaming (random seek)
MP4 streamingMP4/H264/F4V Video Streaming


gzip CompressionHow can I use gzip compression to save bandwidth?
Linux OS TuningHow to tune Linux OS for maximum performance for LiteSpeed.
File Descriptor LimitHow to increase the file descriptor limit
Internal RedirectFor those seeking x-sendfile or x-accel-redirect feature. We show you how with LiteSpeed.
nf_conntrack table“nf_conntrack: table full, dropping packet.” issue
Virtual Host-Level Bandwidth ThrottlingSet different bandwidth limits for different sites
Understanding RAM Disk Path SettingWill RAM disk setting help with I/O load issue
Understanding keep alive settingHow to set “keep alive” for my site

Miscellaneous Customization

Auto Index CustomizationHow to customize auto index script
Microsoft FrontPage Server Extensions 2002How to install Microsoft FrontPage Server Extensions 2002
MultiViewsHow to handle MultiViews
Enable HTTP2How to enable HTTP2
Disable TLS1.0How to disable TLS1.0 while enable TLS1.2 and TLS1.3
Add MIME typeHow to add MIME type if not exist
Show real IP behind a proxyHow to restore real visitor IP instead of proxy?

Virtual Hosting

Name-Based Virtual HostingHow to set up name-based virtual hosting
IP-Based Virtual HostingHow to set up IP-based virtual hosting

Custom Templates

Custom templates can be used to make LSWS virtual hosts that have been prepared for popular web applications and plugins. All templates use LiteSpeed native configurations. They are unnecessary if you are migrating an existing site with web applications from Apache.

Virtual Host TemplatesHow to use a template to configure a group of virtual hosts with similar configurations
WP Super CacheTemplate and tutorial for quick and easy set up of LSWS with WordPress and WP Super Cache
W3 Total CacheHow to use a template to set up LSWS with WordPress and W3 Total Cache
Reverse ProxyUse a template to set up LSWS as a reverse proxy in under seven minutes
MediaWikiSetting up MediaWiki with LSWS is faster and easier with a template
phpBBSet up this popular open source bulletin board application with a template
phpListA tutorial and template for setting up phpList with LSWS
litespeed_wiki/config.txt · Last modified: 2016/09/15 17:08 by Jackson Zhang