The apahce configuration error is reported during Nagios installation.

Source: Internet
Author: User
An error is reported during the apahce configuration during Nagios installation. please help me analyze and solve the problem-Linux general technology-Linux technology and application information. The following is a detailed description. Please help me solve the problem. I have been looking for a few days and a solution, but I still cannot solve it. I hope I can give some advice. thank you!
The preceding apahce and php installation are normal. if a problem occurs when the httpd. conf file is configured, the following error is returned:
[Root @ localhost conf] #/usr/local/apache2/bin/apachectl start
Syntax error on line 428 of/usr/local/apache2/conf/httpd. conf:
Invalid auth file type: // \ xe7 \ x94 \ xa8 \ xe4 \ xba \ x8e \ xe6 \ xad \ xa4 \ xe7 \ x9b \ xae \ xe5 \ xbd \ x95 \ xe8 \ xae \ xbf \ xe9 \ x97 \ xae \ xe8 \ xba \ xab \ xe4 \ xbb \ xbd \ xe9 \ xaa \ x8c \ xe8 \ xaf \ x81 \ xe7 \ x9a \ x84 \ xe6 \ x96 \ x87 \ xe4 \ xbb \ xb6

I made the following changes:
1,
User daemon
Group daemon
Changed:
User nagios
Group nagios
2,
Set

DirectoryIndex index.html

Change

DirectoryIndex index.html index. php

3. add the following code at the end of the configuration file:
AddType application/x-httpd-php. php
# Setting for nagios
ScriptAlias/nagios/cgi-bin "/usr/local/nagios/sbin"

AuthType Basic
Options ExecCGI
AllowOverride None
Order allow, deny
Allow from all
AuthName "Nagios Access"
AuthUserFile/usr/local/nagios/etc/htpasswd // file used for identity authentication access to this directory
Require valid-user

Alias/nagios "/usr/local/nagios/share"

AuthType Basic
Options None
AllowOverride None
Order allow, deny
Allow from all
AuthName "nagios Access"
AuthUserFile/usr/local/nagios/etc/htpasswd
Require valid-user
Related Article

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.