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…
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…
Apache users can utilize directives in .htaccess to control access to certain directories or files, like so: Order Deny,Allow Deny from all However, OpenLiteSpeed only supports .htaccess for rewrite rules, and not for directives. So, OpenLiteSpeed provides other methods for controlling access. Deny Access to…
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. Configure OpenLiteSpeed Virtual Host Through WebAdmin Console From the WebAdmin Console, navigate to Virtual Hosts and press the configuration icon.…
Please see Using cgroups V2 with OpenLiteSpeed for the most up-to-date instructions.
Running Ruby Apps with LSAPI In order to maximize the performance of a Rails application, we (LiteSpeed Technologies) developed our own Ruby interface module using our LiteSpeed APIprotocol, also known as LSAPI. LSAPI is a highly optimized IPC protocol between OpenLiteSpeed web server and a standalone process…
Node.js Apps with OpenLiteSpeed Node.js is a platform that generally runs as a separate web server. OpenLiteSpeed Web Server can be configured to proxy traffic to Node.js so that users can run Node.js applications (like Ghost) on their sites. This wiki will go over how…