add proxy support
This commit is contained in:
parent
fd279e47f4
commit
6d45bb1ed6
@ -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'
|
||||||
|
@ -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
8
lib/apache/proxy.rb
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
module Apache
|
||||||
|
module Proxy
|
||||||
|
def proxy(*args, &block)
|
||||||
|
blockify('proxy'.apachify, *args, &block)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user