Page 1 of 1

Docker httpd Document Root

Posted: 07 Jul 2021, 01:34
by ag.universita
Hello.

I installed the httpd image from the docker gui app and configured it as per these instructions: http://help.terra-master.com/TOS/view/? ... lag/Docker

The server is working (accessing ip+port number works, see screenshot), but I cannot find the document root folder. Does anyone know where it is?

Re: Docker httpd Document Root

Posted: 14 Jul 2021, 09:41
by justsimon
If you follow the guide, including the pictures, you need to create a couple of folders in the "public" folder on the NAS, as per step 5.
Their image shows on the left: /mnt/md0/public/https/www
So create a folder called https in the public folder, then another called www inside https
1.jpg

When you load the URL <ip address>:47739, it should come up and just say Index of / because the www folder is empty.
2.jpg

I created a basic index.html and put it in the www folder, then refreshed the <ip address>:47739, now my basic page is shown.
3.jpg

The It works! file is stored inside the docker container, and will appear when you don't map a volume as described in step 5. Though I'm not exactly sure where in the docker container it is

Hope that helps!