AlphaOne Technology Support Forums
Welcome, Guest. Please login or register.
January 09, 2009, 06:22:06 PM

Login with username, password and session length
Search:     Advanced search
1733 Posts in 827 Topics by 5373 Members
Latest Member: LisaKurator
* Home Help Search Login Register
AlphaOne Technology Support Forums  |  SUPPORT CENTER  |  How Do I Questions  |  Topic: subdomains 0 Members and 0 Guests are viewing this topic. « previous next »
Pages: 1 [2] Go Down Print
Author Topic: subdomains  (Read 8138 times)
RV Guy
Sr. Member
****
Offline Offline

Posts: 30


View Profile
Re: subdomains
« Reply #25 on: May 09, 2006, 09:14:34 AM »

It won't be touched until you noitify me that it's either working or not, and that it's OK to go back into the account.  I do appreciate all the help, and maybe we'll all learn something from this exercise.

Have a very blessed day.

RV Guy
Logged
AlphaWolf
AOT Administrator
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!



View Profile WWW
Re: subdomains
« Reply #26 on: May 09, 2006, 09:20:05 AM »

Thanks RV

In theory this should work.  I added ONLY a CNAME record for the site telling it that it is located at rvnetlinx.net.  DNS may take 24-72 hrs to propagate so I don't trust any testing done now.  Right now it doesnt seem to work right, but I have high hopes.  It *should* then resolve correctly to rvnetlinx.net when it propagates, but i dont know what the browser address will look like.

We use CNAME to point subdomains 'off server' all the time.  For example, our server management services customer logins are at a sub domain of alphaone-tech.com, but point to a different server and domain using CNAME.  The differences:

1) Its 'off server'
2) on the other server there IS an A record for <sub>.alphaone-tech.com

an A record and CName record can not exist in the same DNS zone for the same sub/domain, which is why WHM wasn't handling it right.

http://rscott.org/dns/cname.html

I'm glad I have had the time to try and help you figure this out - you are right it is a good learning experience.

peace

Wolf
Logged

AlphaOne Tech Webmaster Resources
http://www.alphaone-tech.com/resources/
Scott Chase
Sr. Member
****
Offline Offline

Posts: 20


go fish


View Profile WWW
Re: subdomains
« Reply #27 on: May 09, 2006, 09:26:46 AM »

Here is an idea in case the other does not work.  It is not perfect so you will have to do some tweaking but...

I tried this on my site and it worked only for the home page.

In your subdomain have an index.php that includes your root index.php
include('../index.php');

Like i said, there will be some tweaking.  You would have to use full path to image/css files but the domain name stayed the sales.xxx.xxx  It did, however, change whenever i clicked to go to another page.

Might not satisfy what you need, but it was my first thought.   smiley

Scott
Logged

Providing managed hosting at
http://www.chaseserver.com
AlphaWolf
AOT Administrator
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!



View Profile WWW
Re: subdomains
« Reply #28 on: May 09, 2006, 10:18:30 AM »

say now that is a good idea!

I'm not sure it will be exactly what he wants to do, but its something I wouldn't have thought to even suggest.

I am hoping this bloody CNAME thing works.  I can't see any reason it wouldn't...then again DNS is fairly complex.

peace

Wolf
Logged

AlphaOne Tech Webmaster Resources
http://www.alphaone-tech.com/resources/
AlphaWolf
AOT Administrator
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!



View Profile WWW
Re: subdomains
« Reply #29 on: May 09, 2006, 12:10:17 PM »

:-)

Solved the issue BUT when you create your main site you MUST use absolute paths. (We have this issue with the new alphaone site which, for SEO reasons, makes use of a ton of sub domains)

Go to www.sales.rvnetlinx.net  If your browser doesnt display the main rvnetlix.net site, do a refresh or flush your DNS cache, because it is working.

The problem comes in when selecting menu items - they look for the item under the subdomain, and that doesnt seem to work right.  Which i wouldnt expect it to.

I solved the parking of the subdomain by doing this:

1. Go to your WHM
2. Go to the "Park or Point a Domain" section
3. From the list select the domain on top of which you would like to park your subdomain (foo.com).
4. In the "Domain to park" field enter the desired subdomain. (llama.foo.com)
5. Click "Do it".
Logged

AlphaOne Tech Webmaster Resources
http://www.alphaone-tech.com/resources/
AlphaWolf
AOT Administrator
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!



View Profile WWW
Re: subdomains
« Reply #30 on: May 09, 2006, 12:36:23 PM »

On second thought hold that...

The links that didnt work viewing as sales.rvnetlinx.net do not work viewing as rvnetlinx.net either!  I looked and the directories they point to do not exist... so MAYBE this has fixed the subdomain parking issue.

peace

Wolf
Logged

AlphaOne Tech Webmaster Resources
http://www.alphaone-tech.com/resources/
RV Guy
Sr. Member
****
Offline Offline

Posts: 30


View Profile
Re: subdomains
« Reply #31 on: May 09, 2006, 01:30:44 PM »

Ah, you are so good !   No, not all of the nav links in rvnetlinx.net are active yet.  So yes, this now does what I want it to.  I assume when I do this I still need to set up the subdomain first, then go to WHM and park it on top of the TL domain?

Now, when I need to delete this, do I just delete the subdomain, and that it turn would take care deleting the DNS?

I do thank you for your help, and hope this helps others out there.  Always good to add things like this to my bag of tricks Smiley  Have a very blessed day.

RV Guy
Logged
AlphaWolf
AOT Administrator
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!



View Profile WWW
Re: subdomains
« Reply #32 on: May 09, 2006, 02:39:56 PM »

Actually no, I never created a subdomain.  :-D

First I tried just adding CNAMES to the DNS record.  I was convinced that would work, (and it still might work... i found a different solution to try so deleted those)

I then (DOH) looked at WHM closely and saw a park domain feature and decided to try it.  So I removed the CNAMES from DNS via edit DNS Zone and did the park and presto chango... *grin*

So all you have to do is decide on a subdomain name and park in via WHM.

Brad or I could have done this by directly editing HTTPd.cnf but that wouldn't help you much in the future since we strongly discourage anything that has us doing manual editing of the cnf file on any of the servers.  I am a strong believer that if a simple typo can cause a serious problem on the server... AVOID vi!  LOL  Plus you would have to put in a ticket every time you wanted to add a subdomain... blah blah blah... and I figured there really DID have to be a simple way to do this.

I'm just thankful it came at a time where Brad, Jasper or I had time to experiment and find the answer.

peace

Wolf
Logged

AlphaOne Tech Webmaster Resources
http://www.alphaone-tech.com/resources/
Brad
SysAdmin
Tech Team
Hero Member
********
Offline Offline

Posts: 391



View Profile
Re: subdomains
« Reply #33 on: May 13, 2006, 08:27:37 PM »

Good call - I never would have thought the WHM parking would work when Cpanel didnt.

brad
Logged

Pages: 1 [2] Go Up Print 
AlphaOne Technology Support Forums  |  SUPPORT CENTER  |  How Do I Questions  |  Topic: subdomains « previous next »
Jump to:  

Powered by MySQL Powered by PHP AlphaOne Technology Support Forums | Powered by SMF 1.0.7.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!