Ubuntu website folder

  • Posted May 24, 2014

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
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.

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.