server
{
listen 80 default_server;
listen 443 ssl default_server;
server_name soolo.cn roo.ooo;
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/soolo.cn;
#error_page 404/404.html;
ssl_certificate /etc/letsencrypt/live/soolo.cn/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/soolo.cn/privkey.pem;
if ($server_port !~ 443){
rewrite ^/.*$ https://$host$request_uri permanent;
}
error_page 497 https://$host$request_uri;
error_page 404 /404.html;
error_page 502 /502.html;
include enable-php-71.conf;
include /www/server/panel/vhost/rewrite/soolo.cn.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
access_log off;
}
location ~ .*\.(js|css)?$
{
expires 12h;
access_log off;
}
access_log off;
}
|