Apache2

How to Enable User Web spaces in your Debian Linux Server

You can give user based web pages in your apache based  server.

Follow the simple steps shown below after installing apache:

$ cd /etc/apache2/mods-enabled

$ sudo ln -s ../mods-available/userdir.conf userdir.conf

$ sudo ln -s ../mods-available/userdir.load userdir.load

$ sudo /etc/init.d/apache2 restart

and

make directory at your home folder named public_html as normal user($ mkdir public_html)

now browse with address

http://127.0.0.1/~username


Redirect from HTTP to HTTPS with Apache Rewrite Rules

Just put this in your ..htaccess file.

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


How to enable mod_rewrite in apache2

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:

updatedb

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:


How to Manage Apache Resources Limits With mod_slotlimit

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:


How to install Phpsysinfo in Debian

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.


Social Media

  
FeedBurner Subscribe



Categories

Page 5 of 6« First...23456
Copyright © 2012 Linux Debian Tutorials | Debian Squeeze Tutorials. All rights reserved.
↑ Back to Top