Constant 403 Error #336

Closed
opened 2026-02-04 18:35:40 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @jslatt on GitHub (May 12, 2017).

Nginx, Ubuntu 16.04 , PHP P 7.0.15

I keep trying to install BookStack, however, get the following error every time.
2017/05/11 23:50:08 [error] 31172#31172: *1 directory index of "/var/www/wiki.doma.in/html/" is forbidden, client: 24.19.108.145, server: wiki.doma.in, request: "GET / HTTP/1.1", host: "wiki.doma.in"

I have set the owner of the root directory to www-data:www-data and have set the specific directories to 775. Not sure what the error is. Any ideas?

Originally created by @jslatt on GitHub (May 12, 2017). Nginx, Ubuntu 16.04 , PHP P 7.0.15 I keep trying to install BookStack, however, get the following error every time. `2017/05/11 23:50:08 [error] 31172#31172: *1 directory index of "/var/www/wiki.doma.in/html/" is forbidden, client: 24.19.108.145, server: wiki.doma.in, request: "GET / HTTP/1.1", host: "wiki.doma.in"` I have set the owner of the root directory to `www-data:www-data` and have set the specific directories to `775`. Not sure what the error is. Any ideas?
Author
Owner

@domainzero commented on GitHub (May 15, 2017):

Hey @jamslatt,

Looks like you have directory listings turned off in nginx which is producing that error.
In this case, it looks like nginx isn't pulling up the index.php to load the page so it's trying to display the directory instead.

Can you show me your nginx server block and directory layout?

@domainzero commented on GitHub (May 15, 2017): Hey @jamslatt, Looks like you have directory listings turned off in nginx which is producing that error. In this case, it looks like nginx isn't pulling up the index.php to load the page so it's trying to display the directory instead. Can you show me your nginx server block and directory layout?
Author
Owner

@jslatt commented on GitHub (May 15, 2017):

I figured it out. Had the wrong root path in my config. Thanks!

@jslatt commented on GitHub (May 15, 2017): I figured it out. Had the wrong root path in my config. Thanks!
Author
Owner

@domainzero commented on GitHub (May 15, 2017):

👌

@domainzero commented on GitHub (May 15, 2017): 👌
Author
Owner

@Shackelford-Arden commented on GitHub (May 19, 2017):

@jamslatt Mind closing this as it is no longer an issue? :)

@Shackelford-Arden commented on GitHub (May 19, 2017): @jamslatt Mind closing this as it is no longer an issue? :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#336