Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) #650
clockwiser
started this conversation in
General
Replies: 2 comments
-
Finally found the problem is caused by WORKDIR which was set to /var/www. Changing it to /var/www/html solved problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ha same issue following these instructions for docker deployment example on docker hub page
where it tells me to change the workdir, should probably change back workdir or use full paths. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After docker up, access to localhost returns error as below.
Forbidden
You don't have permission to access this resource.
Apache/2.4.48 (Debian) Server at localhost Port 8080
Log details:
[Thu Oct 07 04:02:38.927782 2021] [autoindex:error] [pid 82] [client 172.20.0.1:49550] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
Problem is that index.php is in /var/www, not in /var/www/html.
Don't know why this happens.
Beta Was this translation helpful? Give feedback.
All reactions