2013-08-30から1日間の記事一覧
こんな config.ru を書いて rackup -D とかしておけばよいですね。 new_hostname = "yetanotherapp" run lambda { |env| request = Rack::Request.new(env) Rack::Response.new {|response| response.redirect("http://#{new_hostname}#{request.path}") } }
こんな config.ru を書いて rackup -D とかしておけばよいですね。 new_hostname = "yetanotherapp" run lambda { |env| request = Rack::Request.new(env) Rack::Response.new {|response| response.redirect("http://#{new_hostname}#{request.path}") } }