fix formatting in hosting.md

This commit is contained in:
Jules Kreuer 2024-11-20 10:41:06 +01:00 committed by GitHub
parent fb3fbacc86
commit 7a5e3e4d57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -247,6 +247,7 @@ server {
}
```
### Using Apache
Here's an example of how to do this with Apache:
```apache title=".htaccess"
@ -264,6 +265,7 @@ RewriteRule ^(.*)$ $1.html [L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)/$ $1/index.html [L]
```
Don't forget to activate brotli / gzip compression.
### Using Caddy