Apache htaccess and htpasswd

In order to protect a site or a directory using Apache htaccess and htpasswd files follow the steps-

1. Creating .htaccess file and putting the following code-

AuthUserFile /your/abosolute/path/to/this/file/.htpasswd
AuthGroupFile /dev/null
AuthName "Protected files"
AuthType Basic
<Limit GET>
require valid-user
</Limit>

2. Create a .htpasswd in the same directory as .htaccess and put your generated code. Now the big question how to get a ‘generated code’. Apache used bas_64 encoding. A good web based generator is-

http://www.htaccesstools.com/htpasswd-generator/

Save the file.

And here you go! Your site is protected!

Share

Software RAID 1 on Windows 2003

This series of articles will show how to set up software RAID on a Windows Server 2003 system. Before you do anything with your disks, make sure you have a good backup. We will start with one Basic drive, create a RAID1 set on a new drive we install, remove the first drive, and recover from the second. First off, we have a single 12 gig drive running in Basic mode:

Read more

Share

Installing Nagios on openSUSE 11.0

Scope:

Nagios is an excellent tool that can be used to monitor your systems and devices. For more detailed information check out the main Nagios site : Nagios.org

The scope of this howto is to give specific installation tips for Nagios running on openSUSE 11.x (should also work on openSUSE 10.3 and 11.1). Another aim is to give you an easy way to get graph history setup and more.

Read more

Share

Backup and Restore IIS 6.0 in Windows Server 2003

This article will show how to succesfully backup and restore an IIS 6.0 configuration without any issues to a new server installation. Although it is an easy process to do there are some issues that we have to be aware of.

If we plan to backup and restore IIS 6.0 to the same server installation or repair an IIS we can create a backup without a passsword. This way we are creating a non-portable backup for IIS 6 metabase. Because the machine key is used in case we dont provide a backup we will have to restore it to the same original machine.

Read more

Share