Task: Apache2
Enter the labs/lab-07/tasks/apache2/support/ folder and go through the practice items below.
- Use
make runto start the container. Usestraceinside the container to discover the server document root. The document root is the path in the filesystem from wherehttpdserves all the files requested by the clients.
First, you will have to stop the running container using make stop, then restart it with make run-privileged.
-
Use
straceinside the container to attach to the worker processes (use the-poption for this). You will also have to use the-fflag withstrace, so that it will follow all the threads inside the processes. -
After you have attached successfully to all worker processes, use the
curlcommand to send a request. -
Then check the
straceoutput to see what files were opened by the server.
If you’re having difficulties solving this exercise, go through this reading material.