Apache2 (also called httpd):
Many web-using software requires Apache configuration.
The apache2 configuration file is one of the following two paths:
/etc/apache2/apache2.conf
/usr/local/conf/httpd.conf
----------------------------------------------------------------------------
Configuration DokuWiki:
#允许访问/var/www/dokuwiki/Directory
<Directory/var/www/dokuwiki>
Order Deny,allow
Allow from all
</Directory>
#禁制访问/var/www/dokuwiki/(data|conf|bin|inc)/catalogue
<locationmatch "/(DATA|CONF|BIN|INC)/" >
Order Allow,deny
Deny from all
Statisfy All
</LocationMatch>
----------------------------------------------------------------------------------
Configure Nagios:
<directory "/usr/local/nagios/sbin" >
Options execcgi
Order Allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
Authuserfile/usr/local/nagios/etc/htpasswd.users
Require Valid-user
</Directory>
Alias/nagios "/usr/local/nagios/share"
<directory "/usr/local/nagios/share" >
Options None
AllowOverride None
Order Allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
Authuserfile/usr/local/nagios/etc/htpasswd.users
Require Valid-user
</Directory>
-----------------------------------------------------------------------------
Configuration of Apache2 (httpd)