caddyUn server Web è un'applicazione (lato server) progettata per elaborare le richieste HTTP tra client e server. HTTP è il protocollo di rete di base e ampiamente utilizzato in tutto il web. Avremmo tutti sentito paralre di Apache HTTP Server.

Apache HTTP Server ha svolto un ruolo importante nella progettazione di ciò che il web è oggi. Solo ha una quota di mercato di 45,9 . Nginx è al secondo posto nell'elenco con una quota di mercato 39% . Microsoft IIS e LiteSpeed ​​ arrivano al numero 3 e 4 con una quota di mercato rispettivamente 9,5% e 3,4% .

Recentemente, mi sono imbattuto in un server web denominato Caddy. Quando ho provato a chiedere le sue funzionalità e l'ho distribuito ai test, devo dire che è sorprendente. Un server Web che è portatile (dunque ideale per i miei progetti Docker) e non necessita di troppe configurazione.
Qui ho deciso di provare Caddy !

Caddy è un'alternativa ai vari server web con facile configurazione e utilizzo, Matt Holt - Il capo del progetto di Caddy afferma che Caddy è un server Web di uso generale, afferma di essere progettato per essere umano ed è probabilmente l'unico nel suo genere! E' un binario da soli 11mb!

Caddy è l'unico primo server web in grado di acquisire e rinnovare automaticamente i certificati SSL/TLS utilizzando Let's Encrypt!

  1. Speedy HTTP requests using HTTP/2.
  2. Capable Web Server with least configuration and hassle free deployment.
  3. TLS encryption ensure, encryption between communicating applications and user over Internet. You may use your own keys and certificates.
  4. Easy to deploy/use. Just one single file and no dependency on any platform.
  5. No installation required.
  6. Portable Executables.
  7. Run on multiple CPUs/Cores.
  8. Advanced WebSockets technology – interactive communication session between browser and server.
  9. Server Markdown documents on the fly.
  10. Full support for latest IPv6.
  11. Creates log in custom format.
  12. Serve FastCGI, Reverse Proxy, Rewrite and Redirects, Clean URL, Gzip compression, Directory Browsing, Virtual Hosts and Headers.
  13. Available for All known Platform – Windows, Linux, BSD, Mac, Android.
  1. Caddy aims at serving web as it should be in the year 2017 and not traditional style.
  2. It is designed not only to serve HTTP request but also human.
  3. Loaded with Latest features – HTTP/2, IPv6, Markdown, WebSockets, FastCGI, templates and other out-of-box features.
  4. Run the executables without the need of Installing it.
  5. Detailed documentation with least technical description.
  6. Developed keeping in mind the need and ease of Designers, Developers and Bloggers.
  7. Support Virtual Host – Define as many sites as you want.
  8. Suited for you – no matter if your site is static or dynamic. If you are human it is for you.
  9. You focus on what to achieve and not how to achieve.
  10. Availability of support for most number of platforms – Windows, Linux, Mac, Android, BSD.
  11. Usually, you have one Caddy file per site.
  12. Set up in less than 1 minute, even if you are not that much computer friendly

L'ho testato su uno dei miei server Debian ed utilizzato in qualche docker container, e conclusione:

Se sei principiante e vuoi configurare un server web senza sporcarti le mani con la configurazione, questo strumento fa per te. Anche se sei un utente esperto che ha bisogno di un server web istantaneo e semplice, Caddy vale la pena provare. Con una piccola configurazione è inoltre possibile impostare il permesso di cartella, l'autenticazione di controllo, le pagine di errore, Gzip, reindirizzamento HTTP e altri, se è necessario configurare un server web più complesso e avanzato.

Non prendere Caddy in sostituzione di Apache o Nginx. Caddy non è progettato per gestire un ambiente di produzione ad alto traffico. È progettato per una rapida configurazione del server Web quando si tratta di velocità e affidabilità.