update rack configuration
This commit is contained in:
parent
cddb6d8ffc
commit
a51b958cb9
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ end
|
||||||
use Rack::Rewrite do
|
use Rack::Rewrite do
|
||||||
r302 %r{/(Softwares.*)}, 'http://web.me.com/yann.esposito/$1'
|
r302 %r{/(Softwares.*)}, 'http://web.me.com/yann.esposito/$1'
|
||||||
r302 %r{/(Perso.*)}, 'http://web.me.com/yann.esposito/$1'
|
r302 %r{/(Perso.*)}, 'http://web.me.com/yann.esposito/$1'
|
||||||
r302 %r{/YPassword(.*)}, '/Scratch/en/softwares/ypassword/iphoneweb'
|
r302 %r{/YPassword(.*)}, '/n3blog/en/softwares/ypassword/iphoneweb'
|
||||||
r302 %r{/(Bastien.*)}, 'http://web.me.com/yann.esposito/$1'
|
r302 %r{/(Bastien.*)}, 'http://web.me.com/yann.esposito/$1'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ use Rack::TryStatic,
|
||||||
:urls => %w[/], # match all requests
|
:urls => %w[/], # match all requests
|
||||||
:try => ['.html', 'index.html', '/index.html'] # try these postfixes sequentially
|
:try => ['.html', 'index.html', '/index.html'] # try these postfixes sequentially
|
||||||
|
|
||||||
errorFile='output/Scratch/en/error/404-not_found/index.html'
|
errorFile='output/n3blog/en/error/404-not_found/index.html'
|
||||||
run lambda { [404, {
|
run lambda { [404, {
|
||||||
"Last-Modified" => File.mtime(errorFile).httpdate,
|
"Last-Modified" => File.mtime(errorFile).httpdate,
|
||||||
"Content-Type" => "text/html",
|
"Content-Type" => "text/html",
|
||||||
|
|
Loading…
Reference in a new issue