Rogelio Bastardo
2007-Oct-09 15:34 UTC
[CentOS] Directory index forbidden by rule: /var/www/html/
I'm looking to troubleshoot this error when I run "tail /etc/httpd/logs/error_log" [Tue Oct 09 07:22:59 2007] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/ (I get this when I run Nagios' "./check_http -H 127.0.0.1".) All I did was install CentOS and then modify httpd.conf to include "ServerName 192.168.1.10:80" and also run " htpasswd -c /etc/nagios/htpasswd.users nagiosadmin". Is this a permissions issue on my /var/www/html/ folder? I tried to get the Apache page to serve properly, and it's not doing that. And when I try from another computer, I don't see anything in the logs, which made me think it was an IPTABLES issue (which it doesn't appear to be). Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT icmp -- anywhere anywhere icmp any ACCEPT ipv6-crypt-- anywhere anywhere ACCEPT ipv6-auth-- anywhere anywhere ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353 ACCEPT udp -- anywhere anywhere udp dpt:ipp ACCEPT all -- anywhere anywhere state RELATED,ESTAB LISHED ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:s sh ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:h ttp ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:f tp ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:s mtp REJECT all -- anywhere anywhere reject-with icmp-ho st-prohibited -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20071009/676ad3e3/attachment-0004.html>
Tomas Ruprich
2007-Oct-09 15:56 UTC
[CentOS] Directory index forbidden by rule: /var/www/html/
Directory index is a feature of apache, which: - if there is a file named in DirectoryIndex directive (usually index.html) in the requested directory, then show it (i think this is made by mod_dir) - if not, then create a list of files, if you have mod_autoindex loaded and Options +Indexes in directory configuration (I recommend http://httpd.apache.org/docs/2.2/mod/mod_dir.html and http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html) I believe, this comes because your /var/www/html contains no index mentioned in DirectoryIndex rule. What is the content of /var/www/html? best regards ------------------------------------------------------------------------------- Tom?? Ruprich ruprich at uikt.mendelu.cz DCD IICT MUAF Brno tel.: +420 545 132 885, +420 602 127 744 ------------------------------------------------------------------------------- Tue, Oct 09, 2007 ve 08:34:21AM -0700, Rogelio Bastardo napsal:> I'm looking to troubleshoot this error when I run "tail > /etc/httpd/logs/error_log" > > [Tue Oct 09 07:22:59 2007] [error] [client 127.0.0.1] Directory index > forbidden by rule: /var/www/html/ > > (I get this when I run Nagios' "./check_http -H 127.0.0.1".) > > All I did was install CentOS and then modify httpd.conf to include > "ServerName 192.168.1.10:80" and also run " htpasswd -c > /etc/nagios/htpasswd.users nagiosadmin". > > Is this a permissions issue on my /var/www/html/ folder? > > I tried to get the Apache page to serve properly, and it's not doing that. > And when I try from another computer, I don't see anything in the logs, > which made me think it was an IPTABLES issue (which it doesn't appear to > be). > > Chain RH-Firewall-1-INPUT (2 references) > target prot opt source destination > ACCEPT all -- anywhere anywhere > ACCEPT icmp -- anywhere anywhere icmp any > ACCEPT ipv6-crypt-- anywhere anywhere > ACCEPT ipv6-auth-- anywhere anywhere > ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353 > ACCEPT udp -- anywhere anywhere udp dpt:ipp > ACCEPT all -- anywhere anywhere state > RELATED,ESTAB LISHED > ACCEPT tcp -- anywhere anywhere state NEW tcp > dpt:s sh > ACCEPT tcp -- anywhere anywhere state NEW tcp > dpt:h ttp > ACCEPT tcp -- anywhere anywhere state NEW tcp > dpt:f tp > ACCEPT tcp -- anywhere anywhere state NEW tcp > dpt:s mtp > REJECT all -- anywhere anywhere reject-with > icmp-ho st-prohibited> _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
Jim Perrin
2007-Oct-09 16:00 UTC
[CentOS] Directory index forbidden by rule: /var/www/html/
On 10/9/07, Rogelio Bastardo <scubacuda at gmail.com> wrote:> I'm looking to troubleshoot this error when I run "tail > /etc/httpd/logs/error_log" > > [Tue Oct 09 07:22:59 2007] [error] [client 127.0.0.1] Directory index > forbidden by rule: /var/www/html/ > > (I get this when I run Nagios' "./check_http -H 127.0.0.1".) > > All I did was install CentOS and then modify httpd.conf to include > "ServerName 192.168.1.10:80" and also run " htpasswd -c > /etc/nagios/htpasswd.users nagiosadmin". > > Is this a permissions issue on my /var/www/html/ folder?No, this is caused by the Indexes setting in your Options statement in your httpd.conf file, or other included file for this directory (welcome.conf). Consult your config and the apache documentation for details. If you're serving up the standard welcome to centos page, this is actually an error page because you have no other page to default to. create a blank index.html page or put something there and you won't get this. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
umair shakil
2007-Oct-10 03:46 UTC
[CentOS] Directory index forbidden by rule: /var/www/html/
salam, Please check what is your document root???? it is /var/www/html???? in httpd.conf where does your nagios folder has been placed???? is it /var/www/html??? gust give the server name 192.168.1.10 and no need to put :80, as it is already listening on 80. Regards, Umair Shakil ETD On 10/9/07, Rogelio Bastardo <scubacuda at gmail.com> wrote:> > I'm looking to troubleshoot this error when I run "tail > /etc/httpd/logs/error_log" > > [Tue Oct 09 07:22:59 2007] [error] [client 127.0.0.1] Directory index > forbidden by rule: /var/www/html/ > > (I get this when I run Nagios' "./check_http -H 127.0.0.1".) > > All I did was install CentOS and then modify httpd.conf to include > "ServerName 192.168.1.10:80" and also run " htpasswd -c > /etc/nagios/htpasswd.users nagiosadmin". > > Is this a permissions issue on my /var/www/html/ folder? > > I tried to get the Apache page to serve properly, and it's not doing > that. And when I try from another computer, I don't see anything in the > logs, which made me think it was an IPTABLES issue (which it doesn't appear > to be). > > Chain RH-Firewall-1-INPUT (2 references) > target prot opt source destination > ACCEPT all -- anywhere anywhere > ACCEPT icmp -- anywhere anywhere icmp any > ACCEPT ipv6-crypt-- anywhere anywhere > ACCEPT ipv6-auth-- anywhere anywhere > ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353 > ACCEPT udp -- anywhere anywhere udp dpt:ipp > ACCEPT all -- anywhere anywhere state > RELATED,ESTAB LISHED > ACCEPT tcp -- anywhere anywhere state NEW tcp > dpt:s sh > ACCEPT tcp -- anywhere anywhere state NEW tcp > dpt:h ttp > ACCEPT tcp -- anywhere anywhere state NEW tcp > dpt:f tp > ACCEPT tcp -- anywhere anywhere state NEW tcp > dpt:s mtp > REJECT all -- anywhere anywhere reject-with > icmp-ho st-prohibited > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20071010/7cb5fa77/attachment-0004.html>
Jim Perrin
2007-Oct-10 12:56 UTC
[CentOS] Directory index forbidden by rule: /var/www/html/
Umair, please stop top-posting. It screws the readability of the messages in the archive. On 10/9/07, umair shakil <umairshakeel at gmail.com> wrote:> salam, > > Please check what is your document root???? it is /var/www/html????Something appears to be malfunctioning with your '?' on your keyboard.>in httpd.conf where does your nagios folder has been placed???? isit /var/www/html??? This doesn't have anything to do with his issue. From his email, nagios is working fine, it's just returning that his webserver is throwing an error. It's the webserver error he's tracking down.> gust give the server name 192.168.1.10 and no need to put :80, as it is > already > listening on 80.While you don't *need* to specify the port, the example config does this and it's beneficial to do this if you have more than one website, with apache listening on multiple ports. Otherwise you have the potential for one ServerName definition to override another. With apache, it's best to be as explicit as possible. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
Possibly Parallel Threads
- Nagios: Error: Service check command ... not defined anywhere!
- Glusterd not working with systemd in redhat 7
- bug: recursive directory copy that re-copies nightly
- How to access one machine behind iptables, on different subnet?
- CentOS version of /srv/www/htdocs ?