I am looking to host more than one site off of a single VPS. However I want to serve files from my domain in subfolder such as this http://45.55.78.156/agent/index.html or http://45.55.78.156/students/index.html, or http://45.55.78.156/teachers/index.html. When I visit this url in browser I get a ‘NOT FOUND’ error. How may I fix this? I do not want to use sub-domain, if I can avoid it. Are there any tutorials/resources that treat this use case?
My droplet has LAMP with UBUNTU MYSQL on 16.04.
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
Go to the root directory of apache web server, as you have already installed LAMP.
1.cd /var/www/html/
2.Create directory
mkdir students
inside students directory place you index.html file and set the permission to directory 755 and file permission 664
Restart apaceh services and access your newly created directory using public ip address.
Do let me if it works for you.
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.