Ubuntu website folder

I have used this tutorial to install everything:

But now I want to test and set up a website. I use sftp to connect. I go to this folder: /var/www/ Then there is a folder html where the “index.html” file is with the ubuntu info.

How can I change the html folder to an different name?

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.

Edit the virtualhost file in <code>/etc/apache2/sites-enabled</code> and set <code>DocumentRoot</code> to whatever path you like.

Oke and how can I do that? It’s all new for me.

Hello, <br> <br>If you follow the instructions under apache2 in the LAMP section of the guide above: <br> <br>You will reach a point where it shows the directory that apache2 will look for the website content. You can change this to a different path or whatever folder you would like. Restart apache and the server should point to the new location.