Configuration of Apache2 (httpd)
Apache2 (also called httpd ):
Many web applications require apache configuration.
The configuration file of apache2 contains one of the following two paths:
/Etc/apache2/apache2.conf
/Usr/local/conf/httpd. conf
----------------------------------------------------------------------------
Configure dokuwiki:
# Allow access to the/var/www/dokuwiki/directory
<Directory/var/www/dokuwiki>
Order deny, allow
Allow from all
</Directory>
# Forbidden access/var/www/dokuwiki/(data | conf | bin | inc)/directory
<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>
-----------------------------------------------------------------------------