By guiffo
Hello All
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?
Thanks Jacques
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!
What’s the output of <pre>stat /home/user1 /home/user1/public_html</pre>?
Apache already has an interface for this, see: https://httpd.apache.org/docs/2.2/howto/public_html.html
You might be having permission problems. Make sure that the various <code>…/public_html</code> directories are visible to the public.
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.