apache-config-generator/test/config/httpd.rb

30 lines
531 B
Ruby
Raw Permalink Normal View History

2010-04-27 21:00:43 +00:00
IPS = [ '127.0.0.1:80', '127.0.0.1:81' ]
2010-04-27 20:11:47 +00:00
Apache::Config.build('httpd.conf') do
server_root '/var/html/apache'
2010-04-27 20:27:31 +00:00
modules :expires, :headers
modules :usertrack, :rewrite
load_module "php5_module", "modules/libphp5.so"
2010-04-27 20:11:47 +00:00
2010-04-27 20:27:31 +00:00
passenger '/var/html/ree', '1.8', '2.2.11'
2010-04-27 20:11:47 +00:00
if_module "!mpm_netware" do
runner 'webby', 'opoadm'
end
directory '/' do
2010-04-27 20:27:31 +00:00
options! 'FollowSymLinks'
allow_override! 'None'
2010-04-27 20:11:47 +00:00
deny_from_all
end
2010-04-27 21:00:43 +00:00
virtual_host *IPS do
2010-04-27 20:11:47 +00:00
directory '/' do
allow_from_all
end
2010-05-04 15:48:59 +00:00
2010-04-27 20:11:47 +00:00
end
end