Report this

What is the reason for this report?

webhost - public_html folder

Posted on March 26, 2016

Hi all, i’m new about the “world” of web hosting. So i decided to start with a small droplet to create a webserver that hosts multiple website. So i decided to install LAMP and some test folder under the path: /var/www/html

The structure is like this:

/var/www/html/site1/
/var/www/html/site2/
/var/www/html/site3/

You can see i don’t use the suggested “public_html” folder. This because (and for sure im wrong) i don’t see the advantages to have something like this:

/var/www/html/site1/public_html
/var/www/html/site2/public_html
/var/www/html/site3/public_html

Where are the advantages to use that folder ? every provider uses that so of course there is a reason (probably about to be more safe)

Can someone give me some basic example why this folder is necessary?

thank you

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.