How to deploy hexo static blog using nginx

I have a static blog based on hexo ( Vim Chinese tutorial ), which was originally deployed in coding pages, but due to the recent instability of coding, it is very slow to access, so I decided to migrate my blog to Tencent Cloud server.

I deployed the public directory generated by hexo g under the root path of nginx, only to find that the style was not correct when accessing it, but there was no error in browsing the browser terminal. I don"t know why. Thank you very much for asking everyone to help me.

this is the result of the access deployed on coding pages

nginx

May.09,2022

found the reason. Nginx did not set the default MIME type, which caused the css file not to take effect. You can refer to the instructions of this article https://blog.csdn.net/m0_3790...

.
Menu