Apache Configuration Tool

September 28th, 2007 by pyrat

apache-gunship-flickr

I have been doing a bit of sysadmin stuff with iformis recently which has involved a bit of virtual host configuration for a number of sites. Although Nginx is top for rails, apache is still the king of PHP.

We use apache in a debian / ubuntu environment so I have gone and written a wee gem to make vhost configuration a bit easier.

1. Install apacheconf


sudo gem install apacheconf

2. Setup YAML Config


site_name: fun
server_name: fun.com
server_alias: www.fun.com
document_root: /var/www/apps/fun

3. Run apacheconf


apacheconf –enable fun.yml

4. There is no step 4!

Apacheconf

Please contact me with any issues and ideas for improvements.

Leave a Reply