Snippets about nginx

3 snippets

Back to all snippets

  1. SNP120

    Reverse proxy a Node app with nginx

    Your app listens on 3000, the world talks to nginx on 443.

    18 lines of nginx and sh in 2 blocks, 3 lines of explanation.

    #593 nginx node cmd
  2. SNP066

    Serve Stati's clean URLs from nginx

    /about is about.html. The try_files line, the trailing slash redirect and the 404 page.

    18 lines of nginx and ts in 2 blocks, 12 lines of explanation.

    #742 stati nginx
  3. SNP037

    Redirect www and http to https in nginx

    One canonical address for your site, everything else gets a 301.

    23 lines of nginx and sh in 2 blocks, 1 line of explanation.

    #529 nginx cmd