海量管理资源免费下载!
安装 Apache
# ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all \
--enable-ssl=shared \
--enable-ssl --with-ssl=/usr/local/ssl
# make
# make install
配置/usr/local/apache2/conf/httpd.conf 文件。
修改 apahce 的执行用户、用户组为 nagios、nagios。
配置 Nagios 的 web 应用。
<IfModule !mpm_netware_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd
as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User nagios
Group nagios
</IfModule>
在/usr/local/apache2/conf/httpd.conf 文件追加如下内容。
#setting for nagios
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
#Cgi 文件所在目录
<Directory "/usr/local/nagios/sbin">
AuthType Basic
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
#验证文件路径
AuthUserFile /usr/local/etc/htpasswd
Require valid-user
</Directory>
Alias /nagios /usr/local/nagios/share
#nagios 页面文件目录
<Directory "/usr/local/nagios/share">
AuthType Basic
Options None
AllowOverride None
Order allow,deny
Allow from all
管理资源吧·管理人自己的下载网站