intranetquarto

How to publish a Quarto website to an intranet web server?


I can't find anything on this subject besides it being possible as per Quarto's guide.

I have built a website through Quarto and GitHub before, so I have experience on the Quarto side of things. But are there tips for getting a website on an intranet web server, for a complete newbie to intranet web servers?


Solution

  • Just like any other static site generator, Quarto creates a directory full of HTML files and resources (by default it's _site dir, as far as I can see). Its content is supposed to be ready to be dropped into a directory and served by any half-decent web server. So if we talking about starting from scratch:

    1. Find a server
    2. Set up DNS so that your.intranet.server address resolves to the server's IP address properly
    3. Install and run a Web server (nginx is one of the most popular choices)
    4. Check server config to see what directory is served by default (for nginx it's usually something like /usr/share/nginx/html)
    5. Copy the contents of your _site/ into that default directory.

    It is by no means a full tutorial but should get you started, hopefully.