I have Rails website where I want to enable my users to choose their custom domain and point to my website.

I search and I found that I can declare catch app server block

server {
server_name _;
}

Is this the right way to do support dynamic custom domain? Anything I should concern regarding security, performance, etc.

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!