2012-03-24 74 views
1

我有一個sinokra應用程序與nokogiri寶石。Nginx不接受URL作爲參數在Sinatra Heroku應用程序

我想/後,通過URL像http://www.bbc.co.uk/news/world-us-canada-17492445/:url

http://127.0.0.1:9393/http%3A%2F%2Fwww.bbc.co.uk%2Fnews%2Fworld-us-canada-17492445 

它工作正常,在我的地方發展。 enter image description here

我推到了heroku。 Heroku的給404.這是日誌

enter image description here

如何解決 「未找到」 404 GET在Heroku請求。是否因爲nginx與我的本地服務器(霰彈槍)行爲不同?

回答

0

我只能說這是Nginx重寫規則的錯誤。 可能是它試圖在文件系統或其他文件中進行實際文件過濾,所以它們不能被開發人員更改。

嘗試在網址中添加其他路徑例如

http://127.0.0.1:9393/uri/http%3A 

甚至

http://127.0.0.1:9393/uri?http%3A... 

您可以方便地提取使用辛特拉這個實際值,並在同一時間這樣的URL看起來複雜的URI編碼的值更自然。

相關問題