Get Free Linux Server Security, Performance & Troubleshooting Tips

Home » Web Servers

Performance and Security Tutorials for Apache, Nginx and LiteSpeed

Web servers are the heart and soul of the internet. Without them you shouldn’t be able to even read this text. Our Web Server Tutorials will help you to tweak the performance and security in Apache, Nginx and LiteSpeed web servers.

Nginx upstream timed out

Upstream timed out (110: Connection timed out) while reading response header from upstream, that was the exact message I saw on my system logs today. I knew I already fixed this many times, but haven’t any documentation about it, that’s why today I’m writing this post, to have a definitive and fast way to search for Nginx upstream timed…

Read More »

Flush Nginx PageSpeed Cache on CentOS Linux | Delete ngx_pagespeed cache

Today I was working on a particular dedicated cluster that was an image http cluster, it was designed to serve massive images from a high level traffic website. The images are balanced across the three nodes, with a basic LEMP stack. Nginx was compiled manually with mod_pagespeed (known as ngx_pagespeed). Everything on the servers was working fine, however…

Read More »

Disable directory indexes on Apache using cPanel/WHM for increased security

How can I disable directory indexes for all websites on cPanel server? Answer: yes, there is a very simple method to completely disable the indexes directive from Apache web server for all websites inside a cPanel / WHM server. On this post we will learn about what is directory index or indexes, and how to disable indexes using…

Read More »

Nginx autoindex: Enable directory listing on Nginx Web Server

How can I enable directory listing on Nginx web server in Linux? Directory listing can be enabled using the HttpAutoIndexModule, the one responsible for that function. The HTTP request is passed to the ngx_http_autoindex_module module when no index is found on your webpage. Enabling directory listing for a website using Nginx is pretty much simple, it takes 2 minutes and…

Read More »

301 Redirect: all HTTP requests to HTTPS

I’m trying to redirect all insecure HTTP based requests on my site (http://www.example.com) to HTTPS (https://www.example.com). My page uses PHP,  how can I do this redirect usig .htaccess with Apache web server? That was the question made by one customer earlier this week. First things first: the redirection from HTTP to HTTPS is done at web server level, altough…

Read More »

How to install LiteSpeed cPanel Plugin on WHM Servers Step by Step

LiteSpeed is a fantastic alternative to Apache and Nginx web servers. And the best, is that it is 100% compatible with cPanel and it also supports .htaccess rewrite rules. Today you will learn the quick and easy way to install LiteSpeed cPanel Plugin and to tweak its performance and security settings. LiteSpeed Web Server, also known as LSWS, is a high performance…

Read More »

LiteSpeed 503 Error: Service Unavailable

Today one server was having some strange LitSpeed 503 error on one of their websites. The message was clear: “503 service unavailable”, “the server is temporarily busy, try again later”. What causes this 503 error on LiteSpeed web server? The first thing you have to do is to check the litespeed logs. You can do this by moving…

Read More »