Docker httpd Document Root

Discussion about Docker
Locked
User avatar
ag.universita
Posts: 1
Joined: 07 Jul 2021, 01:23

Docker httpd Document Root

Post 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?
Attachments
Schermata 2021-07-06 alle 19.28.26.png
Schermata 2021-07-06 alle 19.28.26.png (10.3 KiB) Viewed 1728 times
User avatar
justsimon
Posts: 69
Joined: 22 Sep 2020, 15:18

Re: Docker httpd Document Root

Post 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
2.jpg (6.98 KiB) Viewed 1675 times

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
3.jpg (4.9 KiB) Viewed 1675 times

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!
Locked