CentOS 安装 MRTG 软件完成后的 403 Forbidden(转载)
用 yum 安装 MRTG 並设定好之后也把 apache 的 httpd.conf 加上 mrtg 的目录,但 http://server/mrtg 卻一直出現 403 Forbidden。
在 httpd.conf 怎麼看都找不出哪裡有問題,後來才發現套件會自動在 /etc/httpd/conf.d/下安裝 mrtg.conf。(這雖然這個的確很貼心)
#
# This configuration file maps the mrtg output (generated daily)
# into the URL space. By default these results are only accessible
# from the local host.
#
Alias /mrtg /var/www/html/mrtg
<Location /mrtg>
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
# Allow from .example.com
</Location>
修改mrtg.conf 为
Alias /mrtg /var/www/html/mrtg
<Location /mrtg>
# Order deny,allow
# Deny from all
Order allow,deny
Allow from all
Allow from 127.0.0.1
Allow from ::1
# Allow from .example.com
</Location>
后重新启动httpd(service httpd restart)正常访问。
最新文章
- android 两种实现计时器时分秒的实现,把时间放在你的手中~
- ASP.NET Web API 控制器执行过程(一)
- webpack构建vue项目(再谈配置)
- C#刨根究底:《你必须知道的.NET》读书笔记系列
- SqlServer--模糊查询-通配符
- oracle之集合操作函数---minus、union、intersect
- 正则匹配<;{$vcode}>;变量
- jsp中的<;jsp:setProperty>;中的param属性
- 烂泥:CentOS安装及配置TFTP服务器
- 第一次学习QT
- js中定义对象的方式有哪些?
- HOJ 1096 Divided Product (DFS)
- WdatePicker日历控件使用方法(转)
- Linux 下开启ssh服务(转)
- oracle与sqlserver利用函数生成年月日加流水号
- what is yaml ?
- js小函数工具
- zabbix之 zabbix server 跟 agent 更换ip地址
- inst_for_mysql5.7.sh
- BBS--后台管理页面,编辑文章,xss攻击