EDIT: Issue has been solved, thanks. ( Had to comment out NameVirtualHost *:80 in httpd.conf and create domains using www under autosubdomain... to create alias).. Hello, I'm having some issues. I have finally managed to link my server IP with domains. Now there is one problem. I got this domain: "test.com"... and I create many sites... like: test.com ampjuke.test.com demosite.test.com the problem is, when I go to test.com, demosite.test.com or ampjuke.test.com everything is fine! but when I use WWW and go to www.test.com, www.demosite.test.com and www.ampjuke.test.com I always end up at the ampjuke.test.com page Can someone help me? I will use these nameservers for all my domains: ns1.test.com and ns2.test.com Included is some images of my setup: First, for the is.mu domain ... (the one I also use for nameservers ns1.test.com) image removed Second is just one test site demosite.test.com ... it works without www only... image removed
Been trying some more and now I lost it all... now all I see is the Apache 2 Test Page powered by CentOS You can see: http://test.com http://test.test.com http://www.test.test.com All goes to that apache page... I've setup zones for both domains and sites... any idea why they don't appear?
dig is.mu: www.test.com: Now I'm back at the problem I had in first post... no matter which domain I enter I always end up at the same...
This is not DNS related. You just have to make sure that you selected the IP address in the website settings instead of *.
I don't get it to work.... I either end up having all apache pages or all pages the same.... or 404 error not found... Now I removed everything except from test.com dns and then I did this: 1. Sites -> Add new website -> Choose client, and the IP adress -> write domain: test.test.com and save... 2. Then I go to FTP and create user for this domain. 3. Then I go to DNS and press Add DNS zone... choose client -> enter domain test.test.com and ip, nameservers (ns1.test.com and ns2.test.com) and email... Now I get apache page? Also... what kind of zone should be used for main domain/name server domain? I think it's correct, but what do I know? It looks like this (I added ns2 too after this picture was taken).
Ok I tried a few things and came to this conclusion: If I create a website and use IP the only thing that will be displayed is the Apache 2 page... If I create a website using * as IP then all other websites will be redirected to this site. I'm doing as "till" said and has created all sites with IP... Now the question is: Why doesn't each domain display their www folder? It seems like all sites are just sent to the standard html folder where the apache page is located...