OpenLiteSpeed includes a built-in Per-Client Throttling feature which allows you to block bad IPs. Navigate to Configuration > Server > Security configurations > Per Client Throttling to find several configuration settings that you can use to limit the request, bandwidth, and connection rate per remote…
At times, applications may require the creation of an internal server environment variable, such as you might set up with the SetEnv directive in Apache. You can set up server environment variables in OpenLiteSpeed, too. Server Side Setup Log in to the WebAdmin Console, navigate…
Besides configuring PHP by virtual host, OLS also has ability to set up PHP by directory. This means that you can have different directories running different PHP versions to further customize your server environment.
Introduction There is a way to get the benefit of LiteSpeed Cache in your current existing server stack with minimal modification. Let’s use a simple WordPress site on Apache as an example. Install OpenLiteSpeed Once WP is installed and running on Apache, install OpenLiteSpeed. Set…
reCAPTCHA with OpenLiteSpeed As of OpenLiteSpeed 1.5.1, reCAPTCHA is available as a method of defense against DDoS attack. How To Enable at the Server Level Access the WebAdmin console via https://YOUR_SERVER_IP:7080 Navigate to Configuration > Server > Security > LS reCAPTCHA Enable reCAPTCHA: The master switch.…
Setting Up Custom Headers In some circumstance a user may need to set up a custom header, such as a Cache-Control header or an Expire header. In this guide, we will set up custom headers over a JavaScript and CSS file, as an example. Step…
Learn how to enable CageFS for OpenLiteSpeed from the WebAdmin Console in two easy steps. Also learn how to verify that CageFS is working.
You can create a custom error page and set up OpenLiteSpeed to display it for visitors who encounter errors (such as 404). This is how. Create Custom Error Page Create a custom error page and visit the URL to make sure it works. Configure OpenLiteSpeed…
Enable LiteSpeed Cache Module Before using any rewrite rules to enable cache in .htaccess, you will need to register/configurate cache module and setup cache root. Please refer this article to learn how to enable LiteSpeed Cache module if you have not done so. Using Rewrite Rules…
PHP is fully supported by OpenLiteSpeed out of box. No additional configuration is required. However the default binary installed(/usr/local/lsws/fcgi-bin/lsphp) is a minimum build for testing use and can not be used for real applications. This article is not intended to provide instruction on how…