Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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] #917

Closed
JmTexas19 opened this issue Feb 16, 2019 · 1 comment

Comments

@JmTexas19
Copy link

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.

@phanan
Copy link
Member

phanan commented Feb 20, 2019

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

@phanan phanan closed this as completed Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants