hexo搭建的网站是一个静态网站,所以按照部署静态网站的方式部署到nginx上就行了

hexo网站的根目录默认是放在public文件夹下的,以下是我的配置。

server {
            # 监听端口
              listen 80;
              # 监听ip 换成服务器公网IP
              server_name mr-lin.site;
              location / {
                root /web/myblog/blog/public;
                index index.html;
            }
        }

 

相关文章:

  • 2021-09-05
  • 2021-09-26
  • 2021-09-03
  • 2021-11-17
  • 2021-08-20
  • 2021-07-30
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2022-03-05
  • 2021-12-28
  • 2021-12-21
  • 2022-12-23
  • 2021-08-14
相关资源
相似解决方案