Question

var/www to home/user/public_html?

  • Posted on February 20, 2014
  • rodrigoAsked by rodrigo

Hello, I’m newbie on VPS configuration but I learn quick. I have a doubt about the server arquitecture.

I want to have my VPS as clean as possible, and in my old webhost server I could see I have two folders with the exact same info: var/www and /public_html

As I understand, var/ww is a backup of /public_html which is the folder where Internet users go when they visit my website, is that correct?

How can I do that on my VPS?

My thoughts tell me that I can create the folder for each site on /home/user/public_html and create the FTP users with limited privileges, but what happens with the var/www folder?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

you can always create a custom folder to point your OS to the root of your vhost. <br> <br>what is your OS? Nginx or Aapche?