PDA

View Full Version : Caddy Web Server



aaronbrad
03-10-2016, 01:06 PM
Caddy is a simple and easy to use web server. The features of Caddy is as follows:

Speedy HTTP 2.0 requests
No installation needed
Portable
TLS 1.2 encryption standard support
Multiple CPU/Core support
Serve FastCGI, Reverse Proxy, Rewrite and Redirects, Clean URL, Gzip compression, Directory Browsing, Virtual Hosts and Headers
Fully compatible with IPV6
Simple configurations
Support multiple platforms (Windows, Linux, BSD, Mac, Android)


Installation


------------------- On 32-bit Systems -------------------
# wget https://github.com/mholt/caddy/relea..._linux_386.zip
# unzip -d caddy caddy_linux_386.zip
# cd caddy
# ls -l
-rwxr-xr-x 1 root root 7884784 Apr 30 23:30 caddy_linux_386*
-rw-r--r-- 1 root root 462 Apr 30 23:20 CHANGES.txt
-rw-r--r-- 1 root root 434 Apr 30 23:21 README.txt

In 64 bit systems we can use the below source link:
# wget https://github.com/mholt/caddy/relea...inux_amd64.zip

# unzip -d caddy caddy_linux_amd64.zip
# cd caddy
# ls -l
-rwxr-xr-x 1 root root 9835128 Apr 30 23:30 caddy_linux_amd64*
-rw-r--r-- 1 root root 462 Apr 30 23:20 CHANGES.txt
-rw-r--r-- 1 root root 434 Apr 30 23:21 README.txt

To run the web server we can call the binary in terminal as follows:
# ./caddy_linux_amd64
Or
# .caddy_linux_386/
The default port caddy uses is 2015. To load a web page we have to move the binary to the directory that contains web pages. Or else we have to move the web pages to the directory with caddy binary.

NB: Please note that caddy is not a replace for Apache and Nginx. Caddy is meant for simple and quick site creation.

Reference: https://caddyserver.com/