I am creating a blogging application in which we allow our customers to use their own custom domain names, such as domainexample.com, so each other domain serves the same application, but with different content.
However, I am struggling to figure out how to configure this on a production server. If my production server has a static IP address, then I can accurately set the a-record in each domain on the ip of the production server.
But what if the production server does not have a static IP. For example, if we want to place it on a hero or typewriter? I have seen several solutions on the Internet that require the use of rewriting rules, but they require server reboots and cannot really dynamically add and remove new domains when registering new users. Does anyone know of any good solutions that allow multiple domains to fall into the same rails application?
ruby-on-rails apache ruby-on-rails-3 hosting
Nick
source share