Just put this in your ..htaccess file.

// .htaccess HTTP to HTTPS Rewrite Rule
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

1. First install the apache with this command:

apt-get install apache2

2. Now use locate to find if the mod_rewrite.so is availble on your server:


locate mod_rewrite.so

it will found in “/usr/lib/apache2/modules”

3. New apache follow some folders to enable and disable mods so now do this:

cd /etc/apache2/mods-enabled

touch rewrite.load

vim rewrite.load (you may use any editor to edit this file)

4. Now paste this following line:

Continue Reading…

mod_slotlimit is an Apache module that using dynamic slot allocation algorithm and static rules, can manage resources used for each running site.

Step 1. Preparing Your system

In order to compile mod_slotlimit, you will need to have apxs2 (APache eXtension tool) installed and configured with Apache.

Use the following command to install

apt-get install apache2-prefork-dev build-essential

Step 2. Download the source package from here

wget http://kent.dl.sourceforge.net/sourceforge/mod-slotlimit/mod_slotlimit.tar.gz

Step 3. Open archive, compile and install module with those commands:
Continue Reading…

phpSysInfo is a PHP script that displays information about the host being accessed.
It will displays things like Uptime, CPU, Memory, SCSI, IDE, PCI, Ethernet, Floppy, and Video Information.

Step 1. Requirements

Web server (apache2) with php4 or later.

Step 2. Installing phpsysinfo

apt-get install phpsysinfo

After completion of your installation this program automatically located at apache2 default document root directory /var/www/phpsysinfo/ folder. Continue Reading…

There are many different ways you can configure Apache2 to host multiple sites. Here we’re only going to cover the basics with the use of the NameVirtualHost directive.
The advantage of this approach is that you don’t need to hard-wire any IP addresses, and it will just work. The only thing you need is for your domain names to resolve to the IP address of your webserver.

For example if you have an Apache2 server running upon the IP address and you wish to host the three sites example.com, example.net, and example.org you’ll need to make sure that these names resolve to the IP address of your server.

Since we’ll be hosting multiple websites on the same host it makes a lot of sense to be very clear on the location of each sites files upon the filesystem. The way I suggest you manage this is to create a completely seperate document root and logfile directory for each host. You can place these beneath the standard Debian prefix of /var/www or you may use a completely different root.

Step 1. If you’ve not already done create the directories to contain your content, etc, as follows:

Deb:~# mkdir /var/www/www.example.com

Deb:~# mkdir /var/www/www.example.net

Deb:~# mkdir /var/www/www.example.org

Continue Reading…

Page 6 of 71234567