开发者

Reload Apache from Rails application

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜