我有一个在 Nginx 中运行的 Sinatra 应用程序(使用 Thin 作为反向代理),我redirect '/<path>'
在 Sinatra 中使用语句。但是,当我在 https 下访问该站点时,这些重定向会将我发送到http://localhost/<path>
而不是https://localhost/<path>
按照应有的方式发送到。
目前,nginx 使用此命令将控制权传递给瘦身,其中proxy_pass http://thin_cluster
thin_cluster
upstream thin_cluster { server unix:/tmp/thin.cct.0.sock; }
我怎样才能解决这个问题?