[GH-ISSUE #917] Running on Apache return 403; error [Cannot serve directory D:/Apache24/htdocs/koel/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive] #595

Closed
opened 2026-02-26 02:33:39 +03:00 by kerem · 1 comment
Owner

Originally created by @JmTexas19 on GitHub (Feb 16, 2019).
Original GitHub issue: https://github.com/koel/koel/issues/917

Sorry if this is more relevant to Apache then koel.

Most recent commit, cloned using --recursive
Windows 10, Chrome, Apache24

php artisan serve --host 0.0.0.0 deploys fine and is accessible. Having trouble getting it running on Apache however.

Virtual Host

[<VirtualHost *:8000>
    DocumentRoot D:/apache24/htdocs/koel/
    ServerName localhost
	
	<Directory D:/apache24/htdocs/koel/>
		Options +FollowSymLinks
		Options All
		AllowOverride All
		Require all granted
		Options -Indexes
	</Directory>
</VirtualHost>]

The webpage return a 403 instead of the expected login page of Koel.
The error log outputs:
"Cannot serve directory D:/Apache24/htdocs/koel/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive"

I believe htaccess is being read due to the fact that when I put garbage in it a 500 is thrown instead.
Tried add index.php to the directory index but that just displays it on the webpage.

Originally created by @JmTexas19 on GitHub (Feb 16, 2019). Original GitHub issue: https://github.com/koel/koel/issues/917 Sorry if this is more relevant to Apache then koel. Most recent commit, cloned using --recursive Windows 10, Chrome, Apache24 php artisan serve --host 0.0.0.0 deploys fine and is accessible. Having trouble getting it running on Apache however. Virtual Host ``` [<VirtualHost *:8000> DocumentRoot D:/apache24/htdocs/koel/ ServerName localhost <Directory D:/apache24/htdocs/koel/> Options +FollowSymLinks Options All AllowOverride All Require all granted Options -Indexes </Directory> </VirtualHost>] ``` The webpage return a 403 instead of the expected login page of Koel. The error log outputs: "Cannot serve directory D:/Apache24/htdocs/koel/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive" I believe htaccess is being read due to the fact that when I put garbage in it a 500 is thrown instead. Tried add index.php to the directory index but that just displays it on the webpage.
kerem closed this issue 2026-02-26 02:33:39 +03:00
Author
Owner

@phanan commented on GitHub (Feb 20, 2019):

Judging from the error, I believe you have to add index.php into your Apache's DirectoryIndex config as well.

<!-- gh-comment-id:465468813 --> @phanan commented on GitHub (Feb 20, 2019): Judging from the error, I believe you have to add `index.php` into your Apache's `DirectoryIndex` config as well.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#595
No description provided.