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.

Subscribe
Share

Hey Angelo,

Have you installed Apache or NGINX on your server?

You first need to have an file server set-up to serve your HTML files and resources from your server, then you can access these files by dropping them on your program’s www or html folder, so they become available.

Hope this helps you :)


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.

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