add proxy support

This commit is contained in:
John Bintz 2012-06-06 08:27:59 -04:00
parent fd279e47f4
commit 6d45bb1ed6
4 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,7 @@ module Apache
autoload :Rewrites, 'apache/rewrites' autoload :Rewrites, 'apache/rewrites'
autoload :SSL, 'apache/ssl' autoload :SSL, 'apache/ssl'
autoload :MPM, 'apache/mpm_prefork' autoload :MPM, 'apache/mpm_prefork'
autoload :Proxy, 'apache/proxy'
module Rake module Rake
autoload :Support, 'apache/rake/support' autoload :Support, 'apache/rake/support'

View File

@ -61,6 +61,7 @@ module Apache
include Apache::Rewrites include Apache::Rewrites
include Apache::MPM include Apache::MPM
include Apache::SSL include Apache::SSL
include Apache::Proxy
# Build the provided configuration only if the current environment matches one of the conditions # Build the provided configuration only if the current environment matches one of the conditions
def build_if(target, *conditions, &block) def build_if(target, *conditions, &block)

8
lib/apache/proxy.rb Normal file
View File

@ -0,0 +1,8 @@
module Apache
module Proxy
def proxy(*args, &block)
blockify('proxy'.apachify, *args, &block)
end
end
end

View File

@ -243,6 +243,7 @@ module Apache
# * :redirect => true #=> [R] # * :redirect => true #=> [R]
# * :redirect => 302 #=> [R=302] # * :redirect => 302 #=> [R=302]
# * :pass_through => true #=> [PT] # * :pass_through => true #=> [PT]
# * :proxy => true #=> [P]
# * :preserve_query_string => true #=> [QSA] # * :preserve_query_string => true #=> [QSA]
# * :query_string_append => true #=> [QSA] # * :query_string_append => true #=> [QSA]
# * :env => 'what' #=> [E=what] # * :env => 'what' #=> [E=what]