pensiero / dockerfile-apache-php-mysql

Docker image with Apache, PHP7 and Mysql
3 stars 5 forks source link

index.html not found #1

Closed rifkiaz closed 2 years ago

rifkiaz commented 4 years ago

i have copied file index.html to /var/ww/html/

i run

curl localhost

output is 404 not found.

pensiero commented 4 years ago

I'm not sure how you are using to run containers. Can you share that? In any case, maybe a shot in the dark: have you tried with an index.php file?

daf111 commented 2 years ago

I think that container document root is configured as /var/www/public Try mapping this directory in your volumen.

rifkiaz commented 2 years ago

it's fixed for me right now. i'm config document root as /var/www/public