Create/Modify a Virtual Host and Reload Apache from Inside Rails App

Posted by Imran on Stack Overflow See other posts from Stack Overflow or by Imran
Published on 2010-03-21T11:18:54Z Indexed on 2010/03/21 11:21 UTC
Read the original article Hit count: 618

Filed under:
|
|

My application is a setup of two rails applications. Based on some parameters in first app. I need to setup the virtual host of the second app. I just need to change the ServerName and ServerAlias in apache VH and enable the site using a2ensite and then 'apache2 reload '.

How can I do this from within a rails application?

Thanks, Imran

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about apache