Error - Directory index forbidden by Options directive? [duplicate]

╄→гoц情女王★ 提交于 2019-12-05 02:12:49

Looks like someone disabled directory listing in Apache. If you are allowed to override it with .htaccess just place an .htaccess file in your root web directory with this information:

Options +Indexes

For me this was an issue with not simply having an index.html or index.php (depending on what is in the .htaccess file) file in a folder and trying to pull it's contents. Then again I was using php to read contents, not by command line like I assume you are. If you still have not found a solution try creating an index.(php,html) in the directory that you can't pull contents from.

gk_2000

For me what helped was, walking thru the explanations in the httpd.conf file and making sure I am compliant. The below comment helped:

 # The path to the end user account 'public_html' directory must be
 # accessible to the webserver userid.  This usually means that ~userid
 # must have permissions of 711, ~userid/public_html must have permissions
 # of 755, and documents contained therein must be world-readable.
 # Otherwise, the client will only receive a "403 Forbidden" message.

I was trying to move the document root and I hadn't set up the right perms..

For me worked in Wordpress. Error was Forbidden access wp-admin. I created .htaccess with Options +Indexes content.

Thank you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!