You can customize OpenLiteSpeed Virtual Host configuration in DirectAdmin. Despite the misleading name, Custom HTTPd Configurations on the DA Console may be used to add, modify, or edit an OLS virtual host configuration, when OLS is running. The customized changes you make will not be…
By default, OpenLiteSpeed will have the Auto Index function disabled. Auto Index can be enabled at the server level, vhost level & context level, and each sub-level will override a parent-level setting. E.g. the context-level setting will override the vhost-level setting. This can be done…
Introduction In a previous article, we explained how to use OpenLiteSpeed as reverse proxy. In that case the request URI needed to be the same in the frontend as the backend, otherwise a 404 Not Found Error would be returned. In this guide we will…
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…
When using CloudFlare CDN in front of your OpenLiteSpeed Web Server, you may see a proxy IP instead of the real IP addresses of visitors. To restore real visitor IPs, navigate to OpenLiteSpeed WebAdmin Console > Server Configuration > General Settings. Set Use Client IP…
Customizing Log Format in OpenLiteSpeed is possible, and something you may wish to do during the troubleshooting process. For example, you may want to use NCSA Combined Log Format and then use the apachetop command for further log analysis. Here’s how. You can set Log…
WordFence requires auto_prepend_file in order to work correctly, as it allows the Wordfence WAF to load before WordPress, rather than afterward. By default, the following directive in .htaccess is used to load WordFence, but this directive does not work in OpenLiteSpeed. php_value auto_prepend_file ‘/home/example.com/public_html/wordfence-waf.php’ Luckily,…
OpenLiteSpeed Configuration Examples You can install OpenLiteSpeed in multiple ways, and each way may associate OLS configuration files in different locations. The purpose of this article is not to cover the various default configurations for different installation methods, but instead to show you some basic…
WebAdmin Console Makes Configuration Super Easy One of OpenLiteSpeed’s advantages over Apache and nginx is a GUI interface called the WebAdmin Console. By default you should be able to access it through https://your-server-ip:7080. Make sure port 7080 is open in your firewall. Of course you…
What’s PHP Detached Mode? PHP Detached Mode is new in OpenLiteSpeed v1.5.6. In previous versions, all PHP processes were attached to OpenLiteSpeed processes. As such, when OpenLiteSpeed restarted, so would the PHP processes. In PHP Detached Mode, the PHP processes will continue running independently, even when OpenLiteSpeed restarts. When you run in PHP SuEXEC ProcessGroup Mode, PHP process…