Pages: 1 [2]
|
 |
|
Author
|
Topic: subdomains (Read 8138 times)
|
|
RV Guy
|
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
|
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.htmlI'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
|
|
|
|
|
Scott Chase
|
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.  Scott
|
|
|
|
|
Logged
|
|
|
|
|
AlphaWolf
|
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
|
|
|
|
|
AlphaWolf
|
:-) 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
|
|
|
|
|
AlphaWolf
|
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
|
|
|
|
|
RV Guy
|
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  Have a very blessed day. RV Guy
|
|
|
|
|
Logged
|
|
|
|
|
AlphaWolf
|
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
|
|
|
|
|
Brad
|
Good call - I never would have thought the WHM parking would work when Cpanel didnt.
brad
|
|
|
|
|
Logged
|
|
|
|
|
Pages: 1 [2]
|
|
|
 |