FreeSSL官网open in new window
keyManager官网,下载客户端open in new window










server {
listen 80;
server_name burny.tech;
rewrite ^(.*)$ https://burny.tech$1 permanent;
}
server {
listen 443 ssl;
server_name burny.tech;
ssl_certificate /usr/local/nginx/conf/confs/burny.crt;
ssl_certificate_key /usr/local/nginx/conf/confs/burny.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
root 静态代码路径;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}
- nginx没有安装ssl模块
[root@root]
nginx version: nginx/1.21.4
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --with-http_ssl_module
./configure --prefix=/usr/local/nginx --with-http_ssl_module && make
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
cp objs/nginx /usr/local/nginx/sbin/nginx
nginx -s reload
nginx -s reload
命令找不到 nginx.pid
./nginx -c /usr/local/nginx/conf/nginx.conf