mrtg 图形网页访问拒决

来源:互联网 发布:网络原创古风歌曲 编辑:程序博客网 时间:2024/06/06 12:45

当访问MRTG下的图形网页时出现如下错误,


Forbidden

You don't have permission to access /mrtg/10.8.254.1_254.html on this server.


Apache/2.2.3 (CentOS) Server at 10.8.100.26 Port 80
这是因为我们的网但是未对外开放,安装时之所以可以打开是因为我们是用的远程安装,在未重启时,是可以打开图形网页的。
解决很简单,在/etc/httpd/conf.d/下有一个配置文件mrtg.cfgvi/etc/httpd/conf.d/mrtg.cfg

# 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>

按如上的方法,把红色的Mark掉,然后重启httpd就可以了。