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.
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.