Wednesday 23 April 2014

Directory index forbidden by Options directive

Solution :

open httpd.conf file and make entry

vi /etc/httpd/conf/httpd.conf

<Directory "/var/www/html">
   Options -Indexes FollowSymLinks +ExecCGI
    AllowOverride AuthConfig FileInfo
    DirectoryIndex index.php index.html
    Order allow,deny
    Allow from all
</Directory>


If using fastcgi then make entry below mentioned.

<Directory "/var/www/html">
   Options -Indexes FollowSymLinks +ExecCGI
    AllowOverride AuthConfig FileInfo
    AddHandler php5-fastcgi .php
    Action php5-fastcgi /cgi-bin/php.fcgi
    DirectoryIndex index.php index.html
    Order allow,deny
    Allow from all
</Directory>

then restart httpd service.
#/etc/init.d/httpd restart
 

No comments:

Post a Comment

Install XRDP in Centos 7

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum update yum groupinstall "GNOME Desktop" ...