server {
listen 80;
listen 443 ssl;
server_name dev.maximing.top;
ssl_certificate /home/apps/nginx/cert/5647127_dev.maximing.top.pem;
ssl_certificate_key /home/apps/nginx/cert/5647127_dev.maximing.top.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
if ($scheme = http) {
return 307 https://$host$request_uri;
}
#charset koi8-r;
error_log /home/logs/nginx/dev.maximing.top.error.log;
access_log /home/logs/nginx/dev.maximing.top.access.log;
location / {
try_files $uri $uri/ /index.html;
root /home/www/dev/dev.maximing.top;
index index.html index.htm;
}
}
nginx静态资源配置文件
于 2022-04-26 09:28:26 首次发布