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.

  • @vegetaaaaaaa
    link
    English
    8
    edit-2
    1 year 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.

    • @[email protected]
      link
      fedilink
      English
      21 year ago

      Yeah apache is awesome. Lots of settings if u want, and every question I’ve ever asked and probably am yet to ask has already been answered on stack with multiple duplicates aha

      • @vegetaaaaaaa
        link
        English
        11 year ago

        Check out mod_md - this module allows getting certificates from Let’s Encrypt (or any other ACME cert provider) automatically. Just set this anywhere in your config, reload apache and you’re set. No more fiddling around with certbot.

        MDCertificateAgreement accepted
        MDContactEmail me@example.org
        MDomain my.example.org
        

        Also other comments make it look like only nginx supports FastCGI (e.g. php-fpm), apache has supported talking to FastCGI since 2005:

          <FilesMatch \.php$>
            SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost"
          </FilesMatch>
        
        • @[email protected]
          link
          fedilink
          English
          11 year ago

          Yeah I use php-fpm, I didn’t know much about it the first time I installed it, I just needed it for HTTP 2.

          For ssl I just install certbot and let it autorun LetsEncrypt, I haven’t had any issues with any of my ssl certs, it’s pretty nice.

          The age old LAMP stack is pretty solid, except for me it’s LAPP cuz I don’t wanna use mysql.