I have an application which allows users to add there own domains and forward them to particular CNAME so that it works with our application.
For my part, I just need to add a ServerAlias for the domain in my vhost file and reload the apache.
I understand that rails app won't have neces开发者_运维技巧sary privileges to reload apache.
So, what is the best and secure way to accomplish this -- the reload stuff?
Thanks, Imran
I think you should catch *.your.domain and then do a domain detection (including 404 if the domain is invalid) in your Rails application.
精彩评论