点击(此处)折叠或打开
-
server
-
{
-
listen 80;
-
listen 443;
-
server_name platform.13322.com pay.13322.com;
-
ssl on;
-
ssl_certificate /usr/local/nginx/html/ssl/platform_13322_com.crt;
-
ssl_certificate_key /usr/local/nginx/html/ssl/platform_13322_com_private.key;
-
#https配置
-
if ($server_port = 80) {
-
return 301 https://$server_name$request_uri;
-
}
-
if ($scheme = http) {
-
return 301 https://$server_name$request_uri;
-
}
-
error_page 497 https://$server_name$request_uri;
-
#http配置
-
if ($scheme = http) {
-
return 301 https://$server_name$request_uri;
- }