Serve http & https

I need to serve a few assets via http rather than https. The following doesn’t seem to be working. It still redirects to https://

Caddyfile is similar to this:

http://mysite.net {
  root /var/www2/
  gzip
} https://mysite.net {
  root /var/www/
  gzip

  errors visible
}

If I then go to emailMyName- Low-cost email address - 1GB email storage - Block spam - Web & POP3 email access - Get your name as your email address it redirects to https://mysite.net/logo.png

Is there an accepted way to do this, or did I miss something in the docs?

Thanks!

Have you confirmed your browser isn’t caching redirects? They’re permanent, you know. (Try curl.)

No I hadn’t confirmed. And it looks like from curl I’m all set.

Thanks!

1 Like