Report this

What is the reason for this report?

Ubuntu website folder

Posted on May 24, 2014

I have used this tutorial to install everything: https://www.digitalocean.com/community/articles/how-to-launch-your-site-on-a-new-ubuntu-12-04-server-with-lamp-sftp-and-dns

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?



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.

Hello, <br> <br>If you follow the instructions under apache2 in the LAMP section of the guide above: https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu <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.

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.

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.