mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
docs: encode short syntax
This commit is contained in:
parent
dbd9cc7948
commit
bb897a9035
4 changed files with 16 additions and 10 deletions
|
@ -66,7 +66,7 @@ With a PHP FastCGI service running, something like this works for most modern PH
|
|||
```caddy
|
||||
example.com {
|
||||
root * /srv/public
|
||||
encode gzip
|
||||
encode
|
||||
php_fastcgi localhost:9000
|
||||
file_server
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ A typical SPA config usually looks something like this:
|
|||
```caddy
|
||||
example.com {
|
||||
root * /srv
|
||||
encode gzip
|
||||
encode
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ If your SPA is coupled with an API or other server-side-only endpoints, you will
|
|||
|
||||
```caddy
|
||||
example.com {
|
||||
encode gzip
|
||||
encode
|
||||
|
||||
handle /api/* {
|
||||
reverse_proxy backend:8000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue