jeffa.io/www/Caddyfile

20 lines
261 B
Caddyfile

localhost:8080 {
redir http://www.{host}:{port}{uri}
}
jeffa.io {
redir https://www.{host}{uri}
}
www.localhost:8080,
www.jeffa.io {
root * /srv/
file_server {
index /srv/index.html
}
rewrite @not_html {path}.html
@not_html {
not path *.html
}
}