开发者

Reload Apache from Rails application

开发者 https://www.devze.com 2023-01-13 13:29 出处:网络
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.

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

精彩评论

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

关注公众号