nginx http 强制跳转配置
·
使用nginx 强制跳转,将GET请求时候的HTTP的请求强制转向 HTTPS,配置代码如下:
if ( $request_method = 'GET' ) {
rewrite ^(.*)$ https://$host$1 permanent;
}更多推荐
使用nginx 强制跳转,将GET请求时候的HTTP的请求强制转向 HTTPS,配置代码如下:
if ( $request_method = 'GET' ) {
rewrite ^(.*)$ https://$host$1 permanent;
}更多推荐
所有评论(0)