I have a project here on DIY website.
There is a big problem around is; How do i allow a single rails apps to
access by multiple domain? where the info for domain will be store
together with users in the databases.
eg,
RAILS APPS ----- www.example.com
|-- www.sample.com
Nicky Cheng wrote:
I have a project here on DIY website.
There is a big problem around is; How do i allow a single rails apps to
access by multiple domain? where the info for domain will be store
together with users in the databases.
eg,
RAILS APPS ----- www.example.com
|-- www.sample.com
This is a hosting question rather than a Rails question and there are
many ways to do this.
When you set up your rails app on your host you typically sym link your
domains public_html yo your app/public folder
You may have to do some other stuff like setting httpd.conf file
settings or .htacces settings depending on whether or not you are using
passenger and depending on your host setup.
Once you’ve got your app hosted you can the point other sub domains in
exactly the same way.
If you have top level domains you can use your domain registrars control
panel to forward a domain to the domain name of your app or you can
transfer the domain to your host and have the public_html folder sym
linked to your app’s public folder in the same way as you set up your
main domain.
You will really need to talk to your host about the finer details of how
this should be set up