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:
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!