Welcome Guest | Login

Add-on Domain Setup

I currently have a free account with 1 domain hosted:
 
 www.apples.com (not the real domain)

I want to host another domain (banana.com) using the same account. I have read all the threads and tutorials that seem to apply:

 Deploying Multiple Rails apps under one account:
  http://www.hostingrails.com/forums/wiki_thread/6

 Can I host multiple domains on a single Level A account?:
  http://www.hostingrails.com/forums/everything_else_thread/31

But, I'm still in need of a little help. As part of following the tutorial (Deploying Multiple Rails apps) I am told to create my add-on domain. When I add it, I get a screen saying this:

----
Addon Domain Maintenance
Addon Domain Additions

Bind reloading on raptor... The subdomain, banana.apples.com has been added.
...
banana.apples.com was successfully parked on top of banana.apples.com

banana.com has been setup. It can be accessed via the subdomain banana.apples.com. FTP access has been granted with the user name banana@apples.com and the password xxxxxxx.
----

This seems more like a sub-domain to me. I want users to be able to access my site at www.banana.com, not banana.apples.com which this seems to imply. Am I doing something wrong? I went through the "Addon Domain Maintenance" page. Do I need to upgrade my account?

Thanks to anyone who can help. I love this service and I can't wait to get more of my sites up and running!

-Puffy :)

2006-10-02 08:45 PM

Hey there, the way cPanel adds additional domains (i.e. addon domains) to an account is by creating a subdomain and then 'parking' a domain on top of the subdomain.  

So the folder that is created in your public_html becomes the www root for that addon domain.  

This only gets tricky when you're running a Rails app as your main domain....you need to add the rewrite rules in the .htaccess in order to allow requests to make it into that subfolder...

Does this make sense?  

2006-10-03 10:01 AM

Thanks for the clarification. I will give it a try and let you know how it goes.

>> This only gets tricky when you're running a Rails app as your main domain...

I am doing the above. Does that make it worse, or will the above fix work? One way to find out!

-Puffy :)

2006-10-03 07:00 PM

I got it working. Thanks again!

-Puffy :)

2006-10-03 08:26 PM

Can you be more specific about what needs to be edited in the .htaccess file when using an addon domain?

I'm trying to addon a domain and my primary is a rails app.

2007-02-06 04:15 PM

the default Rails .htaccess has a section in it that describes how to do this - look for 'no trails' and it gives you an example...

Cheers,

~William

2007-02-07 02:03 AM


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