Please I need help!
I can’t make the Apache 2 httpd image work.
Linux Ubuntu Server 18.04
In the description it says:
If you don’t want to include a
Dockerfile in your project, it is sufficient to do the following:
$ docker run -dit --name my-apache-app -p 8080:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4
so for testing purposes I did:
- create a test user
- made a www directory
- createt a hallo world (index.html) file ind the www directory
- docker run -dit --name test -p 4444:80 -v /home/test/www/:/usr/local/apache2/htdocs/ httpd
But when I try to reach localhost:4444 i only get: url not found
I checked in the Docker Image the www-directory is mounted and the html-file is in the folder
thanks for help