Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: thallanor on April 29, 2007, 11:09:01 PM

Title: Creating subdomains that point to different ibays
Post by: thallanor on April 29, 2007, 11:09:01 PM
Hello,

I have searched the forum and have been unable to find any references to the issue I am having.

I have my domain, domain.com for this example, and www.domain.com points to the primary ibay.  What I would like to do is add whatever.domain.com and have it point to a different ibay, say whatever.

I only seem to be able to point domain.com to a particular ibay, and then all subdomains point to that.  I haven't been able to find a way to make one subdomain point to one ibay, then another point to a different one.

If someone could help me out, that would be great.  I've been poking at this for a couple days and love the functionality, just wish I could get this last part to work.

Thanks tons!
Title: Creating subdomains that point to different ibays
Post by: cjensen on April 29, 2007, 11:59:11 PM
In server-manager, Create your Ibay/s.  Go to Domains, create the domain/s you want pointing it to the Ibay/s you created.  Then go to your domain register's site and register each domain pointing to your IP.

After doing the above when someone opens a domain you have they will see the content of the Ibay you made for it.

Craig
Title: Creating subdomains that point to different ibays
Post by: thallanor on April 30, 2007, 04:00:48 AM
Quote from: "cjensen"
In server-manager, Create your Ibay/s.  Go to Domains, create the domain/s you want pointing it to the Ibay/s you created.  Then go to your domain register's site and register each domain pointing to your IP.

After doing the above when someone opens a domain you have they will see the content of the Ibay you made for it.

Craig

Thank you for taking the time to respond to my request.  I appreciate it greatly.

I created the i-bay and then clicked on Domains under Configuration.  It lists my only domain there, boarral.com.  If I modify it, I can only point it at one i-bay.  Currently, it is set to my primary i-bay, not the one I created for subdomain.boarral.com.  If I change it to the i-bay I created, then everything goes to the primary i-bay, even www.boarral.com.  I want www.boarral.com to go to my primary i-bay and subdomain.boarral.com to go to the new i-bay I created.  Leaving boarral.com pointing to my primary i-bay also makes subdomain.boarral.com also go to my primary i-bay though.

(I did create the subdomain on the domain hosting web site to point towards the same IP as www.boarral.com.  I only have the one server and one IP.)

I feel I am getting real close, but not quite there yet.  Maybe now that I've explained things better it might be obvious that I am doing something wrong.  I appreciate the help you've given, and I am really loving this system.  I was looking at similar "front ends" for Linux in the past.  I've used ispman and was going to try VHCS when I found this.  I love it. :)
Title: Creating subdomains that point to different ibays
Post by: skydivers on April 30, 2007, 10:07:30 AM
Quote from: "cjensen"
Then go to your domain register's site and register each domain pointing to your IP.

Craig


I don't think this is necessary. If the domainname points towards your server, you only have to create the subdomains in your server manager.
Title: Creating subdomains that point to different ibays
Post by: skydivers on April 30, 2007, 10:10:21 AM
Quote from: "thallanor"
Quote from: "cjensen"
In server-manager, Create your Ibay/s.  Go to Domains, create the domain/s you want pointing it to the Ibay/s you created.  Then go to your domain register's site and register each domain pointing to your IP.

After doing the above when someone opens a domain you have they will see the content of the Ibay you made for it.

Craig

I change it to the i-bay I created, then everything goes to the primary i-bay, even www.boarral.com.  


You don't have to change your domain, if you still want to use the boarral.com as well. You just add your subdomain in your server manager. whan you have done that, you can point your ibay's to the several domains which are listed at the domains panel.
Title: Creating subdomains that point to different ibays
Post by: skydivers on April 30, 2007, 10:13:42 AM
Quote from: "skydivers"
Quote from: "cjensen"
Then go to your domain register's site and register each domain pointing to your IP.

Craig


I don't think this is necessary. If the domainname points towards your server, you only have to create the subdomains in your server manager.


Topic on this item:
http://forums.contribs.org/index.php?topic=36697.0
Title: Creating subdomains that point to different ibays
Post by: cjensen on April 30, 2007, 06:02:09 PM
Yes I worded my reply badly.  It was understood different than I intended.

Craig
Title: Creating subdomains that point to different ibays
Post by: thallanor on April 30, 2007, 06:29:46 PM
Quote from: "skydivers"
You don't have to change your domain, if you still want to use the boarral.com as well. You just add your subdomain in your server manager. whan you have done that, you can point your ibay's to the several domains which are listed at the domains panel.

I am slowly getting a better understanding of how this system works.

In Domains, I only have boarral.com.  (I tried fn.boarral.com when I first started using SME, but realized that I add fn in the Hostnames and Addresses section.)  It is in the Domains section that I specify using the primary ibay.  Because it is the only item in the Domains section, I cannot tell it to use the primary ibay for www.boarral.com and the fn ibay for fn.boarral.com -- it is just one setting, for boarral.com.  So I do not see where I specify different ibays for different subdomains or virtual domains, only the primary domain.  I named my ibay the same as my subdomain -- fn -- in hopes that maybe there was some trick to SME trying to match up subdomains with a matching ibay, but no luck.

In Hostnames and Addresses, where I actually add fn.boarral.com, there is no option anywhere to link it to a specific ibay, just publishing it.  (Which works with http://www.boarral.com/fn/ because I made it public.)

I followed the link that you provided, and noticed that that person is getting things to work with forum.domain.com, but he does not explain how he did it -- only that he wants domain.com to point somewhere other than www.domain.com.  Someone did start posting information about configuration virtual domains, but it appears to be all done from the console.  This is how I have traditionally done it, but not in the form of a template.  If this is how it must be done, I can do that, but I hate messing with files manually when a front end has been provided, since it tends to break things in my experience.

Thank you again for your help.  I feel I am getting so close to fixing this with all your help. :)
Title: Creating subdomains that point to different ibays
Post by: mike_mattos on April 30, 2007, 07:09:08 PM
Depending on your ISP's setup screen, you may have options allowing you to point  
www.mydomain.com   to   domain2.mydomain.com or mydomain.com/domain2

many options are possible but not always obvious.

then in SME you set up the ibays and hostnames to match

My registrar was very helpful with this when my web sites for virtual domains were resolving to the primary!  

I also learned that sometimes using absolute paths on the web pages solves a lot of problems!
Title: Creating subdomains that point to different ibays
Post by: thallanor on April 30, 2007, 07:21:22 PM
Quote from: "mike_mattos"
Depending on your ISP's setup screen, you may have options allowing you to point  
www.mydomain.com   to   domain2.mydomain.com or mydomain.com/domain2

many options are possible but not always obvious.

then in SME you set up the ibays and hostnames to match

My registrar was very helpful with this when my web sites for virtual domains were resolving to the primary!  

I also learned that sometimes using absolute paths on the web pages solves a lot of problems!

I used zonedit.com to manage my domain name, boarral.com.  I have setup fn.boarral.com to point towards the proper IP address.  Prior to using SME Server, I was running Debian Linux with ispman, a front end that allowed me to add domains, subdomains, etc. and point them around as required.  I know that from a domain name point of view with zoneedit.com, everything should be setup properly.

I think the "setting up ibays and hostnames to match" step is where I am lost.  It almost sounds like I make the changes in the ibay config instead of the hostname config, with what I'm hearing, but I don't see anything there that would make sense.

I'm so lost, hehe. :)

EDIT: Just wanted to add that zoneedit doesn't allow me to point to URLs, just IP addresses.

EDIT 2: I checked again and zoneedit does offer web forwards, which should do the trick.  I can go this route, but it doesn't feel like the "right" solution.  I'm really wanting me server to point the proper subdomains to the proper ibays rather than just aiming them at zoneedit's end.
Title: Creating subdomains that point to different ibays
Post by: bpivk on April 30, 2007, 07:38:20 PM
This should help you http://forums.contribs.org/index.php?topic=34919.0

Start from the middle of my posts. I use zoneedit and the way i manage domains is that i point the desired domain (eg. test.domain.com) to my ip and set the apropriate domain under domains and point them to the ibay that i need.
Title: Creating subdomains that point to different ibays
Post by: thallanor on April 30, 2007, 08:07:52 PM
Quote from: "bpivk"
This should help you http://forums.contribs.org/index.php?topic=34919.0

Start from the middle of my posts. I use zoneedit and the way i manage domains is that i point the desired domain (eg. test.domain.com) to my ip and set the apropriate domain under domains and point them to the ibay that i need.

That did it!  Thank you!

The problem is that there are different combinations.  (i.e. Have boarral.com and/or fn.boarral.com as domains.  Have fn.boarral.com as a hostname/don't have fn.boarral.com as a hostname.  Have fn.boarral.com as an A Record on Zoneedit/don't have fn.boarral.com as an A Record on Zoneedit.  Use local DNS servers/Use internet DNS servers.)

In the end, the combination that worked was adding fn.boarral.com as an A Record, adding fn.boarral.com as a Domain in the Domain menu, not having fn as a hostname in the Hostname and Addresses menu.  Use local DNS servers.

It works great now!  Thank you again. :D
Title: Creating subdomains that point to different ibays
Post by: bpivk on April 30, 2007, 10:03:35 PM
Just to add something to my post:
You can't use the domains pannel if you install something in /opt but you can use the zoneedit webforward service for it and use cloak if you want to hide the adress.
Title: Creating subdomains that point to different ibays
Post by: thallanor on April 30, 2007, 10:17:42 PM
Quote from: "bpivk"
Just to add something to my post:
You can't use the domains pannel if you install something in /opt but you can use the zoneedit webforward service for it and use cloak if you want to hide the adress.

I have been seeing a few plugins that install in /opt and this will be my next adventure.  Most of the applications I used on my old server are available in this manner, including Nagios and Torrentflux.  Watch for a new thread from me soon! ;)