Both of those options should be working. I did some testing below.
whitestrake at apollo in ~/Projects/test
❯ caddy -version
Caddy 0.11.1 (non-commercial use only)
whitestrake at apollo in ~/Projects/test
❯ mkdir one two
whitestrake at apollo in ~/Projects/test
❯ echo "Test one" > one/index.txt
whitestrake at apollo in ~/Projects/test
❯ echo "Test two" > two/index.txt
whitestrake at apollo in ~/Projects/test
❯ cat Caddyfile
http://localhost:8080 {
root /Users/whitestrake/Projects/test/one
}
https://localhost:8443 {
tls self_signed
root /Users/whitestrake/Projects/test/two
}
whitestrake at apollo in ~/Projects/test
❯ caddy
Activating privacy features... done.
http://localhost:8080
https://localhost:8443
whitestrake at apollo in ~/Projects/test
❯ curl localhost:8080
Test one
whitestrake at apollo in ~/Projects/test
❯ curl -k https://localhost:8443
Test two
I note that www.abc.com is currently pointed at an Apache server, which issues redirects to Varnish/Amazon S3 at abc.go.com. You’ll need to point it at your Caddy server instead.