-
-
Latest Posts
Archives
Tags for this category
Recently Played Games
Tag Archives: apache2
System monitoring with Munin
This is a brief guide to installing and configuring Munin.
This is how the Munin project describes their software on their site:
Munin is a networked resource monitoring tool that can help analyze resource trends and “what just happened to kill our performance?” problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work.
Installing the server
Installing a Munin server in Kubuntu is easy. This will install the server as well as the client on the server itself:
Apache2: prevent access to a specific directory
Edit the file /etc/apache2/sites-available/default (or any apache config file defining a directory):
Alias /doc/ "/usr/share/doc/"
<directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</directory>
<directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</directory>
The line Allow from … could also read something like:
# allow only from local network
Allow from 192.168
Allow from 192.168
This is useful for things like phpmyadmin and other resources you don’t want to expose to the Internet. Don’t forget to restart apache after making changes to the apache conf:
# service apache restart