How to Password Protect a Website or Web SubDirectory With .htaccess & .htpasswd

Working on a website that you need others to see, but not the whole world? Password protecting a website (or a sub directory within a website).

Protecting files on your website from unauthorized users can be very important. You can use PHP or any language to listen for login authorization information on each page, but that doesn’t protect your images, documents, and other media and it is not proper way to do so.

That’s why I’ve found the new method of protecting files and directories the most reliable and is actually a pretty easy thing to do.

screenshot_001_3

Continue reading “How to Password Protect a Website or Web SubDirectory With .htaccess & .htpasswd”

Advertisements

How To Install and Configure Varnish To Run with Apache 2 on Ubuntu Server

Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is really, really fast. It typically speeds up delivery with a factor of 300 – 1000x, depending on your architecture.

Why Varnish :

  1. To reduce server load.
  2. To make a website load faster, because cache stored in RAM.
  3. To gain more visitors, because every webmaster love it.

As Varnish can be installed and run along with either Nginx or Apache but in this tutorial I will show you how to install and setup Varnish on Apache-based Ubuntu server.

varnish-apache-gootum

Continue reading “How To Install and Configure Varnish To Run with Apache 2 on Ubuntu Server”

How To Set Up Virtual Hosts in Apache Web Server on Ubuntu 12.04 LTS

Apache is the widely used web server on Linux systems. Web server are used to server web content requested by client computer on Internet.

What is Virtual-Host ?

You might have question in mind that what is virtual-host? why and how should I use this? So here is the answer for your questions.

Virtual-host is a nothing but a configuration file that you need to create in apache web server. Virtual host is used for running more than one website on single server.

apache-logo

Continue reading “How To Set Up Virtual Hosts in Apache Web Server on Ubuntu 12.04 LTS”