I need to write some scripts to make changes to Apache conf files, namely to add/update VirtualHosts. I plan on doing this in Ruby. before I write my own, are there any scripts/rubygems which allow Ruby to parse/modify Apache conf files, specifically <VirtualHost> directives?
| |||
feedback
|
|
I ended up just writing my own ruby script... Not very well done, but in case anyone needs it, here's the guts of it. It is looking for the contents of the
Still has some bugs to work out but it mostly does what I want. | |||
|
feedback
|
|
No clue, but one thing that may help you is apache's support for mass virtual hosting: http://httpd.apache.org/docs/2.2/vhosts/mass.html If you can enforce consistency across your vhosts then maybe you don't need ruby to create/manage/edit them. Convention over configuration is the rails way right? | |||
feedback
|