Unable to find var/www/html

Hello. Right now I have an Ubuntu MEAN 14.04 droplet, and I am trying to transfer an html file using SFTP via Filezilla.

I connect to my droplet on filezilla as a non-root user, and I am able to move into /var but var/www and var/www/html apparently do not exist.

How can I solve this so that I am able to transfer the HTML file to my website?


Also, I accessed my droplet through putty and switched to the root user and still was unable to find var/www

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.

Remember first install the apache sudo yum install httpd

This comment has been deleted

If /var/www/html doesn’t exist, then it is likely the case that your web server installation is not configured to use that directory as the web root. Take a look at your web server configuration files to see which directory is designated as the web root. Then move your HTML files there. Alternatively, if you really want /var/www/html as the web root, you can change the configuration. Just be aware that it will require particular permissions to work properly and securely.