Caddy (web server): Difference between revisions
Appearance
	
	
| No edit summary | No edit summary | ||
| Line 14: | Line 14: | ||
| ==Caddyfile== | ==Caddyfile== | ||
| ===HTTP3=== | |||
| Add the following to your Caddyfile: | |||
| <pre> | |||
| {  | |||
|   servers { | |||
|     protocol { | |||
|       experimental_http3 | |||
|     } | |||
|   } | |||
| } | |||
| </pre> | |||
Revision as of 21:07, 26 January 2021
Caddy is a webserver which is much simpler to configure than Apache and is supposedly just as fast. It handles HTTPS automatically.
Advantages of Caddy:
- Much simpler configuration
- Automatic HTTPS (redirect, public certificates, self-signed certificates)
- Automatic HTTP/2
This article is about Caddy v2.
Note that caddy does not support .htaccess which is only supported in Apache.
Caddyfile
HTTP3
Add the following to your Caddyfile:
{ 
  servers {
    protocol {
      experimental_http3
    }
  }
}
