Anything I should concern when using catch all server_name on nginx

September 8, 2018 499 views
Nginx Ruby on Rails Ubuntu 16.04

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.

Be the first one to answer this question.