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 { # 默认80端口 listen80 default_server; listen [::]:80 default_server; # 修改server_name为自己之前注册好的域名,没有就不用更改 server_name pipinstall.cn; # 修改网站根目录,在这里存放你的Hexo静态文件,请自行选择或创建目录 root /root/blog/; # 其他保持不变 # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf;