I want to point several domain names to the same Rails application. The content is different for each domain, but the functionality and the structure of the application is the same.
What is the best way to do this when it comes to server set up and routing? I will use nginx as a web server.
if layout needs to be changed only: add to application controller
the same logic you can use to get content, this is true if all sites will use one database.
In nginx conf add more hosts to server_name directive: