Apache

Create Self-signed SSL Certifcate using OpenSSL for testing purposes in Debian/Ubuntu

What is SSL?

Secure Sockets Layer is an application-level protocol which was developed by the Netscape Corporation for the purpose of transmitting sensitive information, such as Credit Card details, via the Internet. SSL works by using a private key to encrypt data transferred over the SSL-enabled connection, thus thwarting eavesdropping of the information. The most popular use of SSL is in conjunction with web browsing (using the HTTP protocol), but many network applications can benefit from using SSL. By convention, URLs that require an SSL connection start with https: instead of http:.  full story »

Apache2 name-based virtual hosting on Debian/Ubuntu

Introduction

This tutorial will walk you through the configuration of name-base virtual hosting using Apache2 server in Debian and Ubuntu. The default configuration of Apache server in Debian/Ubuntu is limited only to one website based on your IP Address. We will setup a name-based virtual hosting to have multiple websites using only one machine. After this tutorial, you will have example.com, example.net, and example.org hosted in your computer.  full story »

Add password to website using apache web server

Adding password to a website or web directory using Apache web server is easy, for CentOS and other RedHat-based distro, edit your /etc/httpd/conf/httpd.conf and find the line AllowOverride None under <Directory "/var/www/html"> and replace with AllowOverride All.

Then after this line Allow from all add these following lines:

AuthName "Login Message Here"
AuthType Basic
AuthUserFile /var/www/html/htpasswd.users
Require valid-user

Your apache config file should look like this:  full story »