How to show just simple text as "site under developement"

Hello,

I am currently using caddy v2.6.2 and using it as a reverse proxy for different websites that I am running as separate containers + nodejs instances. I want to add a new domain but without invoking any further new container. For example is it possible to do something like this in the caddy file:

somedomain {
just reply a text - under development or just return error 502
}

Thank you very much for anyone helping in advance ))

Use the respond directive:

Next time, please fill out the help topic template, as per the forum rules.

2 Likes

tried with this format below as per the linked documentation but it isn’t working.

MyWebsiteLink    {
respond "Welcome"
}

Note the A record is set properly and propagated as well.

ok seems like working now. Seems like some sort of DNS issue. Might take a bit more time for full propagation )). Thanks for the help anyways ))

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