Welcome Guest | Login

simple question about multiple domains

Hi all,

I have already read the wiki thread 6 http://www.hostingrails.com/forums/wiki_thread/6)

But i think i didn't understand so well ^^;

First off, i know what you have to do for one domain.
I already did:

# mv public_html public_html_backup  
# ln -s ~/app1/public ~/public_html

wich shows the welcome abroad page, perfect.

now my question is, i have a second domain wich is a NON-rails app, and i think that's what i didn't get it in the tutorial..looks good for a rails app, but for a non-app i got quite confused.

what should i do for my other domain?
i can't repeat the steps above because i don't want a folder of my domain2 inside the domain1
this is what i DON'T want (obviusly): /railsapp/public/domain2/*.*

what can i do?

2008-04-20 05:05 AM

code is poetry~
You just need to create the subdomain from your cPanel and it's document root will be created right under the current symlinked public_html. Just uncomment the notrails section (given below) in your main applications .htaccess file replacing "notrails" exactly with the document root of your non-rails app.

#   RewriteCond %{REQUEST_URI} ^/notrails.*
#   RewriteRule .* - [L]

That should do the job for you. Contact support if you run into problems.

2008-04-20 05:40 AM

that was a quick reply for a sunday =D


well,

it's not a subdomain, it's just another domain

not app2.domain.com, but a app2.com, wich is not a ruby on rails

i just added the new domain on the cpanel, and it created the folder app2 inside railsapp/public/app2

that's absolutely what i don't want

it's like all the new domains will be child in the main rails application public folder


is there any way to work around on this?

imagine having 10 domains, all inside my main application, can't they be separated?

2008-04-20 06:05 AM

code is poetry~
I'm afraid there's no work around that can be done from your end. You may need to contact support to get the document root changed according to your requirements, so they can modify it in Apache configuration file.

2008-04-20 06:55 AM

Thank you Varun!

2008-04-20 08:12 AM

code is poetry~

Hello Guest! In order to post you must be an active client with us, please log in or sign up.