This isn’t a question, just a tip that I hope someone finds useful. :)
If you follow Digital Ocean’s Virtual Host thread (https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts) they recommend that you put your web files here:
/var/www/example.com/public_html
I find it better to add your web files to your user’s directory so that you have read/write access when you connect to the server with a Secure FTP client (like Transmit for Mac: http://panic.com/transmit). Otherwise, editing files in /var/www requires sudo permission which can be less convenient.
I prefer to put my files for a website in: /home/<user>/example.com
So here’s what my virtual host file (/etc/apache2/sites-available/sandlotillustrated.com) looks like for one of my domains. Note the custom error log location for easier, non-sudo access:
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!
Part of my original post got eaten. Here’s the corrected line: <br> <br>I prefer to put my files for a website in: /home/{user}/example.com
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.