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”

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”

How To Generate & Install SSL Certificate In Apache Web Server On Ubuntu

SSL, Secure Socket Layer is a protocol created in order to place normal traffic between server and client in encrypted and protected wrapper, without any possibility of traffic being intercepted in between of transmission.

SSL certificates encrypt a site information and create more secure and trusted connection. Certificates can show server’s identification information to site visitors. Certificates Authorities like DigiCert , GoDaddy can issue the self-signed SSL certificates that verify the server information.

In this guide I will cover how to create a self-signed SSL certificates for Apache on an Ubuntu Server which will encrypt traffic to your server. As we are generating SSL certificates are for testing purpose and not issued by any Certificates Authorities it will not provide third party validation of your server identity, but still it will help you to transfer information securely.

Continue reading “How To Generate & Install SSL Certificate In Apache Web Server On Ubuntu”

How To Deploy Odoo/OpenERP 8 With mod_wsgi On Ubuntu/Linux Server (VPS/EC2)

In last few post I explained How to Install OpenERP 7.0 and How to deploy OpenERP 7.0 using mod_proxy and mod_wsgi. In this blog I will describe “How to deploy Odoo/Openerp 8” using mod_wsgi hand in hand with Apache2 on Linux/Ubuntu Server.

Continue reading “How To Deploy Odoo/OpenERP 8 With mod_wsgi On Ubuntu/Linux Server (VPS/EC2)”

How To Deploy Odoo/OpenERP Using mod_proxy and mod_wsgi On Ubuntu/Linux Servers

In last blog I explained “How To Install Openerp” In this blog I will describe “How to deploy OpenERP” using mod_proxy and mod_wsgi hand in hand with Apache2 on Linux/Ubuntu Server.

While installing OpenERP you might came across a requirement to rid out the 8069 port from OpenERP URL. So here is the solution deploy OpenERP using any one of these method.

Continue reading “How To Deploy Odoo/OpenERP Using mod_proxy and mod_wsgi On Ubuntu/Linux Servers”