Servers

<p>In this section I keep notes and write&nbsp;extended tutorials on things like configuring Nginx servers, serving Drupal. Upgrading&nbsp;Ubuntu, PHP-FPM, e.t.c.&nbsp;Apache, Jboss, Tomcat and other might pop in this section as well. Basically routine tasks and solved problems I'm facing everyday.&nbsp;</p>

Redirect non www to www - Apache .htaccess

| 1 views

It has been years since I last time used .htaccess file available in Apache. I'm using Ngnix servers for 99.9 of mine work. But today I had an opportunity to work on Apache environment, which uses .htaccess file. So in order to rewrite non www to www in Apache I added following rulles to .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]   For Ngnix please read this article: http://www.reinisfischer.com/ngnix-www-non…


Nginx URL Redirection: From Non-WWW to WWW

| 15 views

Nginx is a popular web server used to host websites and applications. One of the common tasks in Nginx configuration is redirecting non-www URLs to their www counterparts. This is known as a "www redirect". The purpose of this redirect is to standardize the URL format, improve search engine optimization, and provide a consistent user experience. In this article, we will go over how to set up an Nginx redirect to www using Nginx configuration. Before we begin, it's important to note that this…


Configuring Nginx to Display 404 Page for Unconfigured Domains and Server IP Address

| 11 views

In today's digital age, it is crucial for website owners to have a properly configured web server. This not only ensures a smooth and seamless user experience but also protects the website from potential security threats. One common issue that website owners face is incorrectly indexed links in search engines like Google. In this article, we will provide a simple guide on how to configure Nginx to display a 404 page for unconfigured domains and your server's IP address. The first step in…


The Power of Nginx: A Comprehensive Guide to Nginx Web Server

| 4 views

Nginx (pronounced "engine x") is a high-performance web server and reverse proxy server. It is a free and open-source software that was first released in 2004. Since then, it has gained a lot of popularity and has become one of the most widely used web servers in the world, powering many of the largest websites and web applications. In this article, we'll take a closer look at what Nginx is, how it works, and why it's so popular. What is Nginx? Nginx is a web server that was designed to…