ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### 1.启用ssl模块 `sudo a2enmod ssl ` ### 2.安装openssl `sudo apt-get install openssl` ### 3.通过阿里云或腾讯云申请证书 申请成功后,把证书上传到服务器上 ![](https://box.kancloud.cn/b32d3cd51c2856aa986975532bc3b96d_367x284.png) ### 4.为虚拟主机配置(/etc/apache2/sites-enabled/ 下的配置文件) ~~~ <VirtualHost *:443> ServerAdmin 478280531@qq.com ServerName xxx.xxxx.com DocumentRoot "/var/www/html/gdmap" SSLEngine On SSLOptions +StrictRequire # 证书公钥配置 SSLCertificateFile /etc/ssl/ali_https/public.pem # 证书私钥配置 SSLCertificateKeyFile /etc/ssl/ali_https/214066430410684.key # 证书链配置,如果该属性开头有 '#'字符,请删除掉 SSLCertificateChainFile /etc/ssl/ali_https/chain.pem </VirtualHost> ~~~ ### 5.重启服务器 ~~~ sudo /etc/init.d/apache2 force-reload sudo /etc/init.d/apache2 restart ~~~