Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts

Sunday, January 9, 2011

How to monitor your apache status.

I'll using mod_status which apache2 has provided for.
It's easy to use and you can also use perl script to grab some information you'd like to.

Let's see if you've already got mod_status
browse to your /etc/apache2/mods-available/ 
just list the items and have a look. I think for apache2 they've just put it in already.

So now let's have a test.
$apache2ctl full status
If  it said that you need to add some kind of extended status,
Let's head to the /etc/apache2/apache2.conf and added this code at the end of file.
ExtendedStatus On
Now, your apache status will come up with full information.

If you need more configuration, please have it configured in /etc/apache2/mods-available/status.conf
<IfModule mod_status.c>

# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Uncomment and change the ".example.com" to allow
# access from other hosts.
<Location /server-status>
     SetHandler server-status
     Order allow,deny
     Order deny,allow
     Deny from all
     Allow from localhost ip6-localhost
     Allow from .example.com
</Location>
 </IfModule>


Sunday, September 26, 2010

Enable mod_rewrite for apache in Ubuntu.

sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
cd /etc/apache2/mods-enabled
grep mod_rewrite *


Fix these things


#sudo vi /etc/apache2/site-avaliable/default

then find the following
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
Change it to
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
Then restart your vsftp.