mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-07 10:15:06 -04:00
Fixed a typo
parent
068396803d
commit
2579747815
@ -49,4 +49,6 @@ In the above file, the keywords `redirect`, `gzip`, `ext`, and `tls` are directi
|
||||
|
||||
To learn about what directives are available, please see the list of directives in this wiki.
|
||||
|
||||
For those who want to check their understanding: the file above serves `yourdomain.com` on ports 80 and 443 (the HTTP and HTTPS ports). All requests to port 80 are redirected to 443, the secure port, with a 301 status code. All requests to port 443 are gzipped. Then, if an extension was not added to the URL, the .html extension will be internally added if the resource exists (and if not, it tries .htm). In other words, it serves clean, extensionless URLs by inferring the file extension. The tls line enables TLS using the certificate and key files listed.
|
||||
As you can tell, whitespace separates different arguments/parameters. You can group multiple words into a single argument by enclosing it "in quotes".
|
||||
|
||||
For those who want to check their understanding: the file above serves `mydomain.com` on ports 80 and 443 (the HTTP and HTTPS ports). All requests to port 80 are redirected to 443, the secure port, with a 301 status code. All requests to port 443 are gzipped. Then, if an extension was not added to the URL, the .html extension will be internally added if the resource exists (and if not, it tries .htm). In other words, it serves clean, extensionless URLs by inferring the file extension. The tls line enables TLS using the certificate and key files listed.
|
Loading…
x
Reference in New Issue
Block a user