I want to host my website in my raspberry pi, I’ve read that I would need a web server software for this. Which one do you recommend? It won’t be a complex website.

  • d_k_bo@feddit.de
    link
    fedilink
    English
    arrow-up
    12
    ·
    edit-2
    2 years ago

    Caddy! It has HTTPS built in and provides simple but powerful configuration with sane defaults.

    Example Caddyfile for a static file server:

    example.com {
    	root * /var/www
    	file_server
    }
    

    I used nginx in the past, but didn’t like it’s verbose config files.

  • vegetaaaaaaa@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    2 years ago

    Apache, the OG HTTP server. Fast, well documented, battle-tested, FOSS and community-led (unlike nginx which is corporate-led). People will tell you that nginx is “faster” but never point to actual benchmarks. Both are ok.

  • SniffBark@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 years ago

    I have recently started using Caddy and I love it! FOSS, automatic HTTPS, super easy to setup and works well as a reverse proxy. As your website will not be complex, the Caddyfile would be just a few lines.

  • innercitadel@lemmy.nz
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Hosting personal websites on your own hardware is such a pain, and I would imaging doing it on a rpi would be even more of a pain than on x86 architecture. If at all an option I’d recommend hosting on something like github pages or better still on a VPS.

    • railsdev@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      2 years ago

      Lol, I wonder what terrible programming language you’re working in. Why would you need x86 to host a website?