My main website files are currently located at /var/www and I have SFTP some users to have own specific folders located at /home/user1 /home/user2 etc… (They can actually SFTP in and upload files etc…)
Is there a way to host at the same time in the same ubuntu 12.04 server, sites located at /var/www and located at /home/user?
In fact, I have created the virtual host files and enable them with documentRoot /homer/user1/public_html and /home/user2/public_hml but it is not working after a2ensite for user1 and user2
Can you please help to find a better solution?
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!
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!