views:

24

answers:

1

Dear All,

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 necessary privileges to reload apache.

So, what is the best and secure way to accomplish this -- the reload stuff?

Thanks, Imran

A: 

I think you should catch *.your.domain and then do a domain detection (including 404 if the domain is invalid) in your Rails application.

amay82