Configuration of Apache2 (httpd) and apache2httpd

Source: Internet
Author: User

Configuration of Apache2 (httpd) and apache2httpd

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>

-----------------------------------------------------------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.