繁体   English   中英

devise rails 6下反向代理

[英]devise rails 6 under reverse proxy

带导轨 6.0.3.2 和 devise 4.7.2

当站点位于反向代理之后

当使用 http 协议访问时,应用程序被访问并且连接正常(乘客在 http 上使用 nginx)

when the app is accessed with https with apache2 as reverse proxy and no https in the VPN the site is ok but it is impossible to connect with devise

完全相同(apache2 nginx 乘客)设置适用于 rails 4.2.8 和 devise 4.4.3

在 apache 虚拟主机配置中需要这个

RequestHeader 设置 X-Forwarded-Proto "https"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM