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.
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.
Nginx
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.
Apache httpd if php is involved. Otherwise, nginx.
Both are highly reliable and efficient.
If running php, I usually go with PHP-FPM and nginx, much faster than Apache in most cases
lighttpd, just to be different
Traefik.
Traefik can’t serve html itself though, can it?
It can route requests to a web server, but it can’t serve the files itself iirc.This Stack Overflow post seems to confirm this: https://stackoverflow.com/questions/46503797/is-there-a-way-to-serve-static-resources-with-traefik
I’m a big fan of HAProxy