當我嘗試使用https訪問我的rails網站時,為什么會出現404錯誤?

[英]Why do I get a 404 error when I try to access my rails site using https?


My server is currently hosting a php site. This site uses ssl for certain pages already. Now I am transitioning over to rails, and all my new rails apps go into a subfolder. Passenger is setup and and my app works great. One problem, If i try to go to these pages using ssl, I get a 404 error. Apparently apache is looking for the literal folder instead of handing it off to Passenger as it normally does. What am I missing?

我的服務器目前正在托管一個php網站。此站點已經為某些頁面使用ssl。現在我正在轉換到rails,所有我的新rails應用程序都進入子文件夾。乘客安裝,我的應用程序工作得很好。一個問題,如果我嘗試使用ssl轉到這些頁面,我會收到404錯誤。顯然apache正在尋找文字文件夾,而不是像通常那樣將其交給Passenger。我錯過了什么?

1 个解决方案

#1


Apache for the SSL (port 443) site is probably not set up for Passenger in the same way as for the "normal" (port 80) site.

用於SSL(端口443)站點的Apache可能不像Passenger那樣以“普通”(端口80)站點的方式設置。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2009/04/14/46cf5f2f0a6b99c572fb6fa6f93421d4.html



 
  © 2014-2022 ITdaan.com 联系我们: