0

could anyone point in the right direction on how to serve an mkdocs site on centos using nginx? Or maybe there is a better way of doing it?

Any info is appreciated, thanks.

Arnas
  • 27
  • 7
  • 1
    It's the same as hosting a static website with NGINX, because mkdocs generated site is just static files. Point `root` of NGINX to where your `index.html` is, and you're done... – Danila Vershinin Mar 18 '22 at 10:21
  • Why you don't use GitHub pages as the simplest option for hosting static site? – Zoran Pandovski Mar 28 '22 at 22:41
  • @ZoranPandovski It is running on a remote access VPN server – Arnas Apr 07 '22 at 13:30
  • 1
    @DanilaVershinin could you give an example configuration for nginx.conf pointing to sites folder for mkdocs where the index.html resides? I keep getting 403 Forbidden. nginx/1.20.1 when I try to open it in the browser – Arnas Apr 07 '22 at 21:10
  • I resolved the issue, it was actually a problem with user permissions, hence the 403 Forbidden error message. Thanks – Arnas Apr 08 '22 at 10:49

0 Answers0