# nginx.conf # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/
include /etc/nginx/mime.types; default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory. # See http://nginx.org/en/docs/ngx_core_module.html#include # for more information. include /etc/nginx/conf.d/*.conf;
server { server_name www.mirthfullee.top blog.mirthfullee.top mirthfullee.top; # hexo blog content root <content-root>;
# Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; error_page 404 /404.html; location = /404.html { }
# ssl cert include /etc/nginx/ssl.conf;
} server {
if ($host = mirthfullee.top) { return 301 https://$host$request_uri; } # managed by Certbot
if ($host = *.mirthfullee.top) { return 301 https://$host$request_uri; } # managed by Certbot