Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have been working on this server for the entire semester and have not changed any configuration options - the directories/files I created a couple weeks ago are still accessible, however any new directories, even exact duplicate of old working directories don't let me access them - get error "Directory index forbidden by Options directive". What is causing this?

like image 667
antonpug Avatar asked Apr 28 '12 16:04

antonpug


2 Answers

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
like image 165
John Conde Avatar answered Nov 12 '22 10:11

John Conde


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.

like image 38
mark.inman Avatar answered Nov 12 '22 10:11

mark.inman