Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on httpd

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. A directory must be executable by others in order to show up. Even if a directory show up, it does NOT mean that you can access it. It must be readable by others (at the same) so that it can be accessed using HTTP.

  2. A directory/file must be readable by others on the host so that it can be accessed using HTTP, otherwise you will encounter error messages like the one below.

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

Docker Image

The Docker image httpd is a good one.

Pull the image.

docker pull httpd

Start a docker container.

docker run --hostname httpd -dit -p 80:80 -v $(pwd):/usr/local/apache2/htdocs/ httpd

Comments