AWS ECS Docker: Not pointing to Drupal path and giving error You don't have permission to access this resource
It seems you catch some kind of collision.
- Your
drupal:8.6-apache
image contains Drupal in/var/www/html
folder, but you map your volume to/var/www/
folder inside container. This breaks it at all. - Your
apache-drupal.conf
file points to/var/www/web
, but project is already insidehtml
(we are in container)
The simple way to make it works is to perform 3 modifications (if it's enough for you to get mapped logs only)
- Change volume mapping in
docker-compose.yml
to/var/www/web
- Change
DocumentRoot
andDirectory
inapache-drupal.conf
to/var/www/html/