diff --git a/lib/apache/master.rb b/lib/apache/master.rb index 53a2fd8..01c353b 100644 --- a/lib/apache/master.rb +++ b/lib/apache/master.rb @@ -113,5 +113,11 @@ module Apache opts.each { |o| server_alias o } if !opts.empty? end end + + def document_root(*opts) + directory? opts.first + self << "DocumentRoot #{quoteize(opts.first)}" + end + alias :document_root! :document_root end end