Host Jekyll Site with Nginx
CHECKLIST
- Firewall port
- SELinux
- Force SSL(ssl on configure) should be off at first
Nginx site related configure:
Install jekyll, use RVM may make build easier, e.g:
- Add
export PATH="$PATH:$HOME/.rvm/bin"
to.bashrc
$ rvm install 2.5.3
$ rvm use ruby-2.5.3
Generate HTML (from this pull request):
Using JEKYLL_ENV=production if you set google analytics tracking ID so minima or other theme you’re using will render tracking script.
Change files privilege:
TODO
- In Fedora 25, Nginx static file folder not in
/usr/share/nginx/html
, even SELinux was disabled, Nginx still return a permission denied when access. - An automatic way to change files privilege.