OpenLiteSpeed Core
High-performance event-driven web server with HTTP/3 and QUIC support as the foundation.
LiteHttpd is an enhanced distribution of OpenLiteSpeed that combines four key improvements into a single, production-ready web server:
OpenLiteSpeed Core
High-performance event-driven web server with HTTP/3 and QUIC support as the foundation.
.htaccess Module
Full .htaccess parsing engine supporting 80+ directives, enabling drop-in Apache compatibility.
Kernel Patches
Optimized kernel-level tuning for connection handling, file I/O, and memory management on EL9/EL10.
Config Converter
Built-in litehttpd-confconv tool that translates Apache httpd.conf to native LiteHttpd configuration.
LiteHttpd delivers significant performance gains over Apache while maintaining full compatibility. The following benchmarks were conducted on a 4-core / 8GB EL9 server with default configurations:
| File Size | Apache 2.4 | Stock OLS 1.8 | LiteHttpd | LiteHttpd vs Apache |
|---|---|---|---|---|
| 1 KB | 18,200 | 42,500 | 45,800 | 2.5x |
| 10 KB | 15,600 | 38,200 | 41,300 | 2.6x |
| 100 KB | 8,400 | 19,800 | 21,500 | 2.6x |
| 1 MB | 2,100 | 4,900 | 5,200 | 2.5x |
| Scenario | Apache + php-fpm | Stock OLS + LSAPI | LiteHttpd + LSAPI | LiteHttpd vs Apache |
|---|---|---|---|---|
| Homepage | 285 | 410 | 420 | 1.5x |
| WP Admin | 145 | 205 | 215 | 1.5x |
| WooCommerce Cart | 95 | 140 | 148 | 1.6x |
| REST API | 380 | 530 | 550 | 1.4x |
| Scenario | Apache + php-fpm | LiteHttpd + LSAPI |
|---|---|---|
| Static 1 KB | 12 ms | 4 ms |
| WordPress Homepage | 85 ms | 58 ms |
| WooCommerce Cart | 210 ms | 135 ms |
LiteHttpd uses the LSAPI protocol to communicate with PHP, which provides significant advantages over the traditional php-fpm approach:
LiteHttpd supports 80+ Apache .htaccess directives, covering the vast majority of real-world usage:
RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]Full support for RewriteEngine, RewriteBase, RewriteCond, RewriteRule with all common flags.
<RequireAll> Require ip 192.168.1.0/24 Require not ip 192.168.1.100</RequireAll>
# Legacy syntax also supportedOrder deny,allowDeny from allAllow from 192.168.1.0/24Header set X-Content-Type-Options "nosniff"Header set X-Frame-Options "SAMEORIGIN"AddType application/json .jsonAddDefaultCharset UTF-8ExpiresActive OnExpiresByType image/jpeg "access plus 1 year"php_value upload_max_filesize 64Mphp_value post_max_size 64Mphp_flag display_errors Off
AuthType BasicAuthName "Restricted"AuthUserFile /home/user/.htpasswdRequire valid-userThis means WordPress plugins like Yoast SEO, W3 Total Cache, WP Super Cache, and virtually all security plugins work without any modifications.
LiteHttpd includes two tools for migrating from Apache:
Analyzes an existing Apache configuration and generates a compatibility report:
litehttpd-readapacheconf /etc/httpd/conf/httpd.confOutput includes:
Converts Apache configuration files to LiteHttpd native format:
litehttpd-confconv --input /etc/httpd/conf/httpd.conf --output /usr/local/lsws/conf/LiteHttpd includes several security enhancements beyond stock OpenLiteSpeed:
LiteHttpd packages are available from the official RPM repository for EL9 and EL10:
# Add the repositoryrpm -ivh https://rpms.litehttpd.com/litehttpd-release-latest.el9.noarch.rpm
# Install LiteHttpddnf install litehttpd
# Start the servicesystemctl enable --now litehttpd| File | Purpose |
|---|---|
/usr/local/lsws/conf/httpd_config.conf | Main server configuration |
/usr/local/lsws/conf/vhosts/ | Per-site virtual host configs |
/home/<user>/<domain>/.htaccess | Per-directory overrides |
/usr/local/lsws/logs/error.log | Server error log |
/usr/local/lsws/logs/access.log | Access log |