You don't have permission to access /mrtg on this server
Was getting following error message
Forbidden
You don't have permission to access /mrtg/ on this server.
--------------------------------------------------------------------------------
Apache/2.0.52 Port 80
I checked the logs @ /var/log/httpd
-rw-r--r-- 1 root root 10368 Apr 16 13:52 error_log
Found following lines
Directory index forbidden by rule:
client denied by server configuration: /var/www/mrtg
Do follwoing steps to fix the issue
To restart the Apapche server use this command httpd -k restart
In /etc/httpd/conf.d
more 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 allow,deny
Allow from all
Allow from 127.0.0.1
Allow from ::1
# Allow from .example.com
</Location>
In /etc/httpd/conf
<Directory "/var/www/mrtg">
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www/html/mrtg">
Order allow,deny
Allow from all
</Directory>
DocumentRoot "/var/www/html"
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
Was getting following error message
Forbidden
You don't have permission to access /mrtg/ on this server.
--------------------------------------------------------------------------------
Apache/2.0.52 Port 80
I checked the logs @ /var/log/httpd
-rw-r--r-- 1 root root 10368 Apr 16 13:52 error_log
Found following lines
Directory index forbidden by rule:
client denied by server configuration: /var/www/mrtg
Do follwoing steps to fix the issue
To restart the Apapche server use this command httpd -k restart
In /etc/httpd/conf.d
more 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 allow,deny
Allow from all
Allow from 127.0.0.1
Allow from ::1
# Allow from .example.com
</Location>
In /etc/httpd/conf
<Directory "/var/www/mrtg">
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www/html/mrtg">
Order allow,deny
Allow from all
</Directory>
DocumentRoot "/var/www/html"
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
No comments:
Post a Comment