You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have this simple setup (shown below), but I ran into the following issue:
When I visit http://php.def:8000 from my host, server returns only "404 page not found".
But if I run bash on the apache service container and visit (wget) http://localhost from there, the output of my /var/www/html/index.php file is returned as expected.
Bash @ apache container
$ cat /usr/local/apache2/conf/conf.d/vhost.conf
<VirtualHost *:80>
DocumentRoot "/var/www/html"
ServerName default
Include conf/preset.conf
<Location />
Require all granted
</Location>
SetEnvIf Request_URI "^/\.healthz$" dontlog
RedirectMatch 204 .healthz
</VirtualHost>
$ ls /var/www/html/
docker-compose.yml docker-sync.yml docker.mk index.php traefik.yml
$ wget -qO- http://localhost
OK, this is text from my index.php file
I know this issue is closed but I came here with the same problem. My problem was that my index.php file was in /var/www/html, it should be in /var/www/html/public as stated in the documentation.
Hello, I have this simple setup (shown below), but I ran into the following issue:
When I visit http://php.def:8000 from my host, server returns only "404 page not found".
But if I run bash on the apache service container and visit (wget) http://localhost from there, the output of my /var/www/html/index.php file is returned as expected.
Bash @ apache container
Host OS
Windows 10
Docker info output
Docker compose file
Logs output
.env
Hosts etc/host
docker-compose up -d
The text was updated successfully, but these errors were encountered: