2011-07-24 07:21:52 +02:00
|
|
|
page "/fake.html", :proxy => "/real.html", :layout => false
|
2011-12-26 20:11:31 +01:00
|
|
|
page "fake2.html", :proxy => "/real.html", :layout => false
|
|
|
|
page "fake3.html", :proxy => "real.html", :layout => false
|
|
|
|
page "/fake4.html", :proxy => "real.html", :layout => false
|
2011-07-24 07:21:52 +02:00
|
|
|
|
2011-07-27 23:14:22 +02:00
|
|
|
ignore "/should_be_ignored.html"
|
|
|
|
page "/should_be_ignored2.html", :ignore => true
|
|
|
|
page "/target_ignore.html", :proxy => "/should_be_ignored3.html", :ignore => true
|
|
|
|
|
2011-12-26 20:11:31 +01:00
|
|
|
ignore "should_be_ignored4.html"
|
|
|
|
page "should_be_ignored5.html", :ignore => true
|
|
|
|
page "target_ignore2.html", :proxy => "/should_be_ignored6.html", :ignore => true
|
|
|
|
page "target_ignore3.html", :proxy => "should_be_ignored7.html", :ignore => true
|
|
|
|
page "/target_ignore4.html", :proxy => "should_be_ignored8.html", :ignore => true
|
|
|
|
|
2011-07-24 07:21:52 +02:00
|
|
|
%w(one two).each do |num|
|
|
|
|
page "/fake/#{num}.html", :proxy => "/real/index.html" do
|
|
|
|
@num = num
|
|
|
|
end
|
2011-12-26 20:11:31 +01:00
|
|
|
page "fake2/#{num}.html", :proxy => "/real/index.html" do
|
|
|
|
@num = num
|
|
|
|
end
|
|
|
|
page "fake3/#{num}.html", :proxy => "real/index.html" do
|
|
|
|
@num = num
|
|
|
|
end
|
|
|
|
page "/fake4/#{num}.html", :proxy => "real/index.html" do
|
|
|
|
@num = num
|
|
|
|
end
|
2011-07-07 07:41:12 +02:00
|
|
|
end
|