0.0
No release in over a year
Helps build apache2 virtual host configuration files from a simpler config file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.0, ~> 0.2
 Project Readme

Introducing the MyApacheConf gem

require 'myapacheconf'

s = "# Apache

## ProxyPassThru

### Port 80

www.jamesrobertson.me.uk 192.168.4.22:2022
s1.jamesrobertson.me.uk 192.168.4.22:4012
"
mac = MyApacheConf.new(s)
mac.conf.keys #=> ["www.jamesrobertson.me.uk", "s1.jamesrobertson.me.uk"]
puts mac.conf['www.jamesrobertson.me.uk']

output:

<VirtualHost *:80>
  ProxyPreserveHost On
  ProxyPass / http://192.168.4.22:2022/
  ProxyPassReverse / http://192.168.4.22:2022/
  ServerName www.jamesrobertson.me.uk
</VirtualHost>

Resources

myapacheconf apache conf vhost apache2