Category Archives: Web Servers

How to Specify a Vary: Accept-Encoding header in Nginx?

A few days ago I was working optimizing one of our company blogs. I was using a public performance test tool to find out which aspects of the web performance I needed to improve to get better speed. One of the bottlenecks I found was this warning: Specify a Vary: Accept-Encoding header What does this mean? This means the  web server… Read more »

How to Find Out Nginx Web Server Version

      No Comments on How to Find Out Nginx Web Server Version

How can I print Nginx web server version from the Linux terminal? In order to find out Nginx version, you need to pass the -v or -V options to the nginx binary: Example: nginx -v Output: [root@server.cpaneltips.com:~]nginx -v nginx version: nginx/1.11.7 The -v option passed to Nginx shows only the nginx version number, but we can get more details from… Read more »

Linux: How can I Restart Nginx WebServer?

      No Comments on Linux: How can I Restart Nginx WebServer?

How can I restart nginx web server on Linux? In order restart nginx web server, you can use any of the next commands. Make sure you run this commands with root privileges: service nginx restart or /etc/init.d/nginx restart However, be aware that restarting Nginx webserver may interrupt all active connections. For this case, it is better to reload nginx, instead… Read more »

How can I configure WordPress Permalinks in Nginx?

WordPress usually works fine without any tweaks on Nginx fresh installations. WordPress posts load fine without any issues, however the default WordPress permalinks are not optimized to be SEO friendly. On this post we will learn to WordPress permalinks in Nginx But first, let’s learn the types of permalinks that exist, and how to choose the right permalink structure from your… Read more »

Nginx 413 Request Entity Too Large Error

      No Comments on Nginx 413 Request Entity Too Large Error

When you are using Nginx as a reverse proxy for Apache (or other web services) you may face this common HTTP issue: Nginx 413 Request Entity Too Large Error Why does Nginx 413 Request Entity Too Large error happens? The common scenario for this error is when you are running Nginx as front end server for a backend server like… Read more »

Missing owner for domain, force lookup to root

Today we have a quick tip for a warning we saw in one cPanel box recently: after rebuilding Apache configuration, you may get this weird error message: root@server.cpaneltips.com [~]# /scripts/rebuildhttpdconf info [rebuildhttpdconf] Missing owner for domain server.cpaneltips.com, force lookup to root Built /usr/local/apache/conf/httpd.conf OK This error is related to the hostname of the server, but it doesn’t really affect any… Read more »

How to Fix Nginx 502 Bad Gateway Error on cPanel

502 Bad Gateway is one of the most popular Nginx error messages on the Internet. Today we will find out why this 502 bad gateway error is seen on many pages over the net, and that also includes Nginx + cPanel based websites. If the error page was customized, you can also find this 502 error with other phrases/words like: “HTTP… Read more »