Question

I can't seem to view my index.html file.

HOLD ON. I just found my /var/ folder

Hey guys, I’ve recently uploaded the necessary files for my website in my Ubuntu14.04 server. I followed the initialization guide (minus the LAMP installation) so can log in to my FTP, phpMyAdmin, upload files, and make database tables. I also set up a user named angelo according to the guide (instead of demo).

Now, I uploaded the project folder of a sample ExtJS4 website to the following directory:

/root/home/angelo/samples/projectname/

and all the files are inside the projectname folder.

However, when I go to: myWebsite.com/home/angelo/samples/projectname/index.html

I get a 404 telling me that the requested URL was not found in this server. Now, I tried removing the /home then /angelo but to no avail as well.

Can anyone help me with my issue? It seems that I’m overlooking something rather simple/easy but I can’t seem to figure out what it is. Any help is very much appreciated, thank you.

Show comments

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.

Hi there!

What you are needing is called a virtual host (or server block, for Nginx). This is what tells the web server to load files from a certain location if called by a certain domain. You can find virtual host guides for Nginx and Apache at these links:

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts

Kind Regards, Jarland Platform Support Specialist