Talk up why I am using OLS
Some folks haven't even heard of OpenLiteSpeed, so include some info.
This commit is contained in:
53
README.md
53
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
|
||||||
|
<IfModule LiteSpeed>
|
||||||
|
CacheEnable public /
|
||||||
|
CacheEnable private /
|
||||||
|
CacheExpiresActive On
|
||||||
|
CacheExpiresByType text/html A300
|
||||||
|
</IfModule>
|
||||||
|
```
|
||||||
|
|
||||||
|
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
|
## Default Settings
|
||||||
|
|
||||||
* Web Root: `/var/www/html`
|
* Web Root: `/var/www/html`
|
||||||
|
Reference in New Issue
Block a user