Bonjour, I try to set a subdomain as a site, but this subdomain only points at the top domain. On my domain dns settings (registrar : ovh) the subdomain is create and set on the server IP On the top domain: - Adress IP = * - domain = anares.eu - Auto sub-domain = none On the top domain: - Adress IP = * - domain = test.anares.eu - Auto sub-domain = none What wrong ?
I'm not sure you're going about using a subdomain the right way, i think.... Use DNS setting to point to your server Use the Sites tab, Subdomain for website, Add new subdomain to make the subdomain.
From my understanding of the OPs post, there is a misunderstanding over what the subdomain should achieve. What actually happens is that creating a subdomain merely points the subdomain at the main site. What the OP wants is to have a subdomain have its own webspace. In that case anares should use "Add new website" instead of "Add new subdomain" and set the domain name to subdomain.domain.com
Then I may need a little clarification. Do I not achieve the same result when adding a new site to set 'auto subdomain' to * ? Maybe it's used to send to a completely different site but appear to be a subdomain of the original
Mikep explained it in #3. If a subdomain shall point to a existing site, use the subdomain function. If the subdomain shall have its own webspace, create a new website for it instead. The auto subdomain is just a automatically created alias. It works the same as when you create a subdomain manually. See the vhost files for details.
That's exactly what I have done, my problem is the subdomain only goes to the top domain. In can't have an http access on subdomain.domain.com, but only on domain.com.
I'm still not sure I have this sorted then. My test domain: wooodsidekennels.com works fine I go to add subdomain: host: testing redirect: R redirect path: http://www.anotherdomain.com but the domain doesn't resolve. Have I missed something?
Have you added a dns A-record for testing.wooodsidekennels.com in the DNS Server of the domain wooodsidekennels.com that points to the IP address of the website?
I hadn't, but now I have. I added a cname record host: testing Target hostname: wooodsidekennels.com. when i used the dig command, i get the following: Code: dig testing.wooodsidekennels.com ; <<>> DiG 9.5.1-P3 <<>> testing.wooodsidekennels.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64567 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;testing.wooodsidekennels.com. IN A ;; ANSWER SECTION: testing.wooodsidekennels.com. 43200 IN CNAME wooodsidekennels.com. wooodsidekennels.com. 43200 IN A 93.97.**.* ;; Query time: 310 msec ;; SERVER: 145.253.2.75#53(145.253.2.75) ;; WHEN: Tue May 11 21:28:51 2010 ;; MSG SIZE rcvd: 76 Sorry for hijacking the thread, but I think i'm encountering the same questions as the OP I hope! I'll put this into a guide as usual when I have it sussed.
Maybe I'm not so clear ! Sorry for my English... I never use the subdomain function, always "add a new website"
There is one more question on this topic... when the redirect is given in the subdomain, what are the use of the flags? I thought they were used url rewrites but no matter which one I apply, the new domain name appears in the browser.
Please see apache manual for details on how apache rwrite rules work: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html