How to view website with files hosted on a droplet?

I was following this tutorial to transfer files using filezilla.

And the files are uploaded onto the droplet which I can see using ls on the command prompt.

But there is no information about how to view the website that I’ve just pushed onto the server.

I don’t understand how to view my website. I go to http://dropletIp/root/WebsiteName/index.html or http://dropletIp/WebsiteName/index.html and I just get a 404 Not Found error, despite the fact that the files do exist on the server.

Is there a certain folder where I should upload the files that isn’t the root folder?

I just want to be able to see the website in a browser hosted on the droplet.

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.

Hello, @mail2561077a5f0fc26e303428

You can follow up on our tutorial on how to setup the LAMP stack on Ubuntu 20.04

You need to set up a virtual host for your your_domain—-creating-a-virtual-host-for-your-website

If you’re not planning to use a domain but rather access the files using the droplet IP you can upload the files in the /var/www/html directory.

Regards, Alex