Docker Community Forums

Share and learn in the Docker community.

Forbidden You don't have permission to access / on this server.


(Dantofema) #1

Hi. I have a problem with php-apache. I can not access my application

$ docker run -d -p 9090:80 --name my-apache-php-app -v  /c/xampp/htdocs/test:/var/www/html php:7.0-apache
f7a566461fd12278af52f11575832760ddbbf399afc97342d57ebee404d40b8c

http://192.168.99.100:9090/
Forbidden
You don’t have permission to access / on this server.
Apache/2.4.10 (Debian) Server at 192.168.99.100 Port 9090


(Sam) #2

so, you need to fix the apache conf file to redirect / to the appropriate web site root file.

this is normal apache config

I would look at the doc for the image you are using, php:7.0-apache
to see how best to do those changes