FOSS or otherwise

  • tetris11
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    nginx

    why not just python -m http.server 1234 ?

    • u/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      I feel like NGINX is simplest to configure. And it’s in the repos already, so I don’t see the advantage here.

      Easy to do redirects, directory listings, serving a static website, setting mime types of specific files, basic user authentication, using HTTPS, using it as reverse proxy, limiting request types, limiting bandwidth, and making the directory listings far nicer with fancyindex module. That’s all I need and it’s pretty simple to do with NGINX. I don’t know what the Python HTTP server does, nor how to use.

      • tetris11
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        edit-2
        3 months ago

        if you said Caddy, I’d believe you more – but nginx requires a lot of configuration.

        python http server simply does a directory listing in the folder it is invoked in, and if there is an index.html file present it will serve it by default. Easy for hosting files/images from your phone