diff --git a/README.md b/README.md index feaa275..929b211 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,59 @@ low-powered hardware such as Raspberry Pi. --- +## โšก Why OpenLiteSpeed? + +**OpenLiteSpeed** is a next-generation web server built for **performance**, **efficiency**, and **scalability** making it the clear choice over platforms like Apache in 2025. + +- ๐Ÿš€ **Blazing Fast**: OpenLiteSpeed serves dynamic PHP content up to **6ร— faster than Apache** and **2ร— faster than NGINX**, thanks to its event-driven architecture and LSAPI. +- ๐Ÿ”‹ **Low Resource Usage**: Designed with modern workloads in mind, OpenLiteSpeed can handle high traffic on modest hardware with a fraction of the CPU and memory usage of traditional servers. Did someone say Raspberry Pi? +- ๐Ÿ”„ **Effortless Scalability**: Handles thousands of concurrent connections with ease! No need for complex tuning or reverse proxy layers. +- ๐Ÿ”’ **Built-in HTTP/3, QUIC, and Brotli**: Stay ahead with cutting-edge protocols and compression for superior speed and SEO. +- ๐Ÿงฉ **Compatible with .htaccess & Apache-style Configs**: Easily migrate sites from Apache without rewriting your code or server configs. +- ๐Ÿง  **Smart Caching and Optimization**: Especially when paired with LSCache (see below) OpenLiteSpeed delivers ultra-fast load times even under heavy load. + +Whether you're running a small VPS or scaling to enterprise traffic, **OpenLiteSpeed delivers unmatched performance with minimal overhead** and it's 100% open source. + +## Web Server Performance + +Serving a 10 KB PHP page (SSL LABS latency test, 50 concurrent requests) + +| Web Server | Requests per Second | +|-----------------|---------------------| +| Apache 2 | 5.5 | +| NGINX | 16.1 | +| OpenLiteSpeed | **34.2** | + +๐Ÿงช *Numbers vary slightly based on configuration, caching, and hardware. These values are approximate based on benchmark tests from LiteSpeedTech and real-world tests from server comparison blogs (2023โ€“2025).* + +### ๐Ÿ”ง Enabling LSCache via `.htaccess` + +OpenLiteSpeed includes support for [LSCache](https://www.litespeedtech.com/products/cache-plugins) by default. LSCache is a high-performance, server-level cache engine that significantly improves website speed and reduces server load. + +To enable LSCache for your site: + +1. **Create or edit** a `.htaccess` file in your document root (e.g., `/var/www/html/.htaccess`) +2. **Add the following LSCache rules:** + + ```apache + + CacheEnable public / + CacheEnable private / + CacheExpiresActive On + CacheExpiresByType text/html A300 + + ``` + +3. **Restart OpenLiteSpeed** to apply the changes: + + ```bash + sudo systemctl restart lsws + ``` + +> **Note:** This configuration example caches both public and private content and sets a default expiration of 300 seconds (5 minutes) for HTML content. You can customize these values to suit your needs. You may wish to disable caching during active development, as it can prevent you from seeing changes immediately. + +--- + ## Default Settings * Web Root: `/var/www/html`