RESOLVED - Virtualmin in a container

I’m aware this might not be a linux containers issue, but I don’t know if there is something in using a container that is causing my problem, especially since I haven’t had such a problem when using virtualmin normally.

  1. On my VPS with Ubuntu 18.04, I created the container inglesnobrasil with the Ubuntu 18.04 image. (For anyone who saw my earlier post about my container inglesnobrasil, I deleted that container and the one I talk about here is a newly created container.)

  2. In this container, I successfully installed virtualmin using their script.

  3. I set iptable rules for ports 80, 443 and 10000 (the port for virtualmin)

  4. In a browser, http://inglesnobrasil.com.br displayed the web page.

5. In a browser, https://inglesnobrasil.com.br gave me an error.

  1. In a browser, http://inglesnobrasil.com.br:10000 displayed the web page after accepting the risk of an unsecure page.

  2. In virtualmin I added the domain inglesnobrasil.com.br.

  3. In creating the domain, in enabled features, I unchecked “Setup DNS zone” (I use cloudflare.) and checked Setup SSL website too.

  4. After doing this, when I go to inglesnobrasil using either http// or https//, I get a 403 Forbidden error “You don’t have permission to access / on this server.”

  5. And when I go to inglesnobrasil/index.html using either http// or https//, I get a 403 Not Found error “The requested URL /index.html was not found on this server.”

  6. I entered the container and went to /var/www/html/ and the index.html page that displayed in step 4 above is there.

Any ideas what the problem might be?
I discovered that the website’s home directory is now /home/admin/public_html, not /var/www/html.