免费试用
中文化、本土化、云端化的在线跨平台软件开发工具,支持APP、电脑端、小程序、IOS免签等等
yourdomain.com.crt (服务器证书+CA-BUNDLE)yourdomain.com.key (私钥文件)如果为空请将生成CSR时保存的私钥内容粘贴在文件中
/etc/nginx #centos 使用yum安装一般在这个位置/etc/nginx/sites-available/example.com #ubuntu 系统/usr/local/nginx/conf/vhosts #lnmp
#请根据自己服务器实际配置文件路径修改vi /etc/nginx/sites-available/example.com
server { listen 80; #SSL 配置必要参数 listen 443 ssl; #站点主机名 server_name www.yourdomain.cn; #SSL 配置必要参数 ssl_protocols TLSv1.2 TLSv1.1 TLSv1; ssl_certificate /opt/ssl/yourdomain.com.crt; ssl_certificate_key /opt/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; }}
#CentOS6 系统service nginx restart#CentOS7 系统 / Ubuntusystemctl restart nginx #旧的Linux系统/etc/init.d/nginx reload#Windows nginxcd nginx安装目录nginx.exe -s reload