Going mad over subdomains

My primary domain is working fine on LINODE.. all is well

I am trying to setup subdomains i.e

development.mydomain.com

created the virtual name conf file in sites-avaialble, and made the site avaialble , ServerAlias is set to www.development.mydomain,com (also tried without the www) in that file.. all the other entries double checked, document root points to right place,

I have created the document root, extracted some basic test files. and restarted apache (no errors returned).. CHMOD'ed appropriate permissions to the webfiles

I have added development.mydomain.com to the hosts file and made it point locally

site STILL wont load.. I dont think it is even being found

I have read multiple general guides to help get this setup and now concede defeeat

Do I have to add a new entry in DNS? will this be a slave or a master.. as thats the only thinkg left to test, but I suspect that change will take time to propegate so before I go down that route and wait for nothing.. i would like to confirm its correct

4 Replies

or maybe an aaaa record?

You need an A Record in your DNS named "development" pointing to your Linode IP.

You don't need to modify hosts file, that's only for your VPS. This way, your home computer (and any external computer) doesn't know what is development.mydomain.com.

Alternatively, if you don't want to modify your DNS, you can modify your home computer hosts file (http://en.wikipedia.org/wiki/Hosts_%28f … ile_system">http://en.wikipedia.org/wiki/Hosts%28file%29#Locationinthefile_system), so only that computer will know how to get development.mydomain.com.

@leecymj:

or maybe an aaaa record?
DNS "A" records are for IPv4 addresses (eg. 192.168.1.2), while "AAAA" records are for IPv6 addresses (eg. 2001:0db8:85a3:0042:0000:8a2e:0370:7334).

Appreciate the speedy response AND lack of mocking, and the little snippet of IP6 info.

All working now.. i have been spoilt by previous webhosts that do it for me.. so that caught me on the hop.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct