Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 471 Bytes

README.md

File metadata and controls

12 lines (11 loc) · 471 Bytes

Caddy: Map Subdomain to Directory

Caddy serves different subdomains to different directories on the file system with a mapping like this:

example.com --> /var/www/example.com/main
www.example.com --> /var/www/example.com/main
some-branch.example.com --> /var/www/example.com/some-branch
...

See the accompanying blog post Static Sites as Gitlab Review Apps with Caddy.