How to I make a rails app run just on a subdomain? -
i run multiple rails apps on 1 domain name.
ex: app1.expample.com , app2.example.com
right have root routes pointing
root 'pages#home' "/" => "pages#home" how change run on subdomain root?
since said "multiple rails apps" assuming not mean multi-tenant app acts multiple subdomains.
this have more dns , webserver configuration app configuration. want install different apps virtual host configurations in apache, nginx etc. if using heroku easy have manage dns.
i running multiple docker containers behind nginx reverse proxy routes virtual hosts apps serving different ports on docker host involve bit more setup.
Comments
Post a Comment