Site Overlay

How to repair grub bootloader on a dual boot machine with Windows and Linux

Grub 2 typically gets overridden when you install Windows or another Operating System. To make Linux control the boot process, you need Reinstall (Repair/Restore) Grub using a Linux Live CD. Related posts: named bind server – adding multiple TXT records for the same domain linux swap memory limits – referenceContinue readingHow to repair grub bootloader on a dual boot machine with Windows and Linux

Restricting Access with HTTP Basic Authentication in Apache and Nginx

You can restrict access to your website or some parts of it by implementing a username/password authentication. Usernames and passwords are taken from a file created and populated by a password file creation tool, for example, apache2-utils. Creating a Password File sudo htpasswd -c /etc/httpd/.htpasswd admin or sudo htpasswd -cContinue readingRestricting Access with HTTP Basic Authentication in Apache and Nginx

How to Redirect www URL to non-www and non-www URL to www with Nginx

This tutorial will show you how to redirect a www URL to non-www, e.g. www.example.com to example.com, with Nginx. We will also show you how to redirect in the other direction, from a non-www URL to www. Configure DNS Records In order to set up the desired redirect, www.example.com to example.com or vice versa,Continue readingHow to Redirect www URL to non-www and non-www URL to www with Nginx

apache2/httpd – IP based restriction to a virtual host

The Require provides a variety of different ways to allow or deny access to resources. In conjunction with the RequireAll, RequireAny, and RequireNone directives, these requirements may be combined in arbitrarily complex ways, to enforce whatever your access policy happens to be. example: Related posts: IP based restriction using NginxContinue readingapache2/httpd – IP based restriction to a virtual host