How to disable https only for one domain (caddy v2)

I have a config file for Caddy v2 like in below:

sentry.mydomain.ru {
    reverse_proxy sentry:9000
}

tasks.mydomain.ru {
    reverse_proxy taiga-proxy:80
}

ain.mydomain.ru {
    reverse_proxy ain-frontend:80
}

Caddy makes https for every domain but I need to disable “https” only for ain.mydomain.ru.
How to do it?

Just prepend the domain name with http:// :smile:

But, it is always redirected on https:// :man_shrugging:

Did you try this?

http://ain.mydomain.ru {
    reverse_proxy ain-frontend:80
}

Ohh… thanks. It is works for me.

1 Like

FYI, this is the relevant part in the docs:

This topic was automatically closed after 30 days. New replies are no longer allowed.