Changes to the Apache Document Root
For every server we’ve built since the very beginning, we’ve used /home/you/public_html/ as the Apache document root. This is quite common amongst hosts, but starting with davie.textdrive.com, things have changed…
Instead of /home/you/public_html/, it’s now /home/you/web/public/ (or for secondary domains, /home/you/domains/foo.com/web/public/).
Despite some initial confusion, we feel this is a positive step for our directory layouts, and it has some nice benefits for nearly all of our customers:
- for Ruby on Rails developers, you can use web/ as your RAILS_ROOT, and web/public/ as your public directory, which means there’s no need for symlinks, no funky directory structures, and no need to tweak Apache’s default document root to suit “the Rails way”
- for PHP/Perl/Python/whatever developers, this is a great place to store sensitive information and non-http files (mysql database passwords, config files, code libraries, includes, etc) above the document root that Apache serves from, without cluttering up your home directory
We’re looking into the possibility of making the same change to all the existing servers, but at this point, it’s “business as usual” on One, Barclay, Bidwell, Nelson, Pendrell et al.
·:· Posted 11 May 2005, 16:46 by Justin French to Server geek |

— Toby 11 May 2005, 18:48 #
— Danny 11 May 2005, 21:35 #
— ichigo 11 May 2005, 21:59 #
— Chuck McKinnon 12 May 2005, 19:24 #
— Sean 13 May 2005, 13:54 #
— Michael O'Henly 13 May 2005, 17:37 #
— Bob Aman 13 May 2005, 17:54 #
— Derek 13 May 2005, 18:40 #
— Justin 14 May 2005, 15:42 #
sign me up for this change on bidwell :)
cheers
ram
— ram 2 June 2005, 04:34 #