业务域名已配置好,但是小程序开发工具提示非业务域名,网上查了下大概是https和重定向的问题。
服务器为debian,域名已配置好ssl,未开启cdn。求大神帮忙看下nginx配置文件,求助~
server {
listen 80;
listen 443 ssl;
server_name minocuisine.com www.minocuisine.com;
root /var/www/wordpress;
index index.php index.html index.htm index.nginx-debian.html;
#SSL Settings
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_certificate /home/key_dir/1_minocuisine.com_bundle.crt;
ssl_certificate_key /home/key_dir/2_minocuisine.com.key;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location / {
try_files $uri $uri/ =404;
}
location = /50x.html {
root /var/www/wordpress;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param HTTPS on; #attention HTTPS!#
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}