免费试用
中文化、本土化、云端化的在线跨平台软件开发工具,支持APP、电脑端、小程序、IOS免签等等
yourdomain.com.crt (服务器证书)yourdomain.com.key (私钥文件)如果为空请将生成CSR时保存的私钥内容粘贴在文件中
nginx -V
./configure --with-http_stub_status_module --with-http_ssl_modulemake && make install
server {listen 80;listen 443 ssl;server_name www.yourdomain.cn;ssl_protocols TLSv1.2 TLSv1.1 TLSv1;ssl_certificate /etc/ssl/yourdomain.com.crt;ssl_certificate_key /etc/ssl/yourdomain.com.key;ssl_prefer_server_ciphers on; #自动跳转到HTTPS (可选)if ($server_port = 80) {rewrite ^(.*)$ https://$host$1 permanent;}location / {root /home/getssl/;index index.php;}}
centos6service nginx restart centos7systemctl restart nginx