Going mad over subdomains
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
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 (
@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).
All working now.. i have been spoilt by previous webhosts that do it for me.. so that caught me on the hop.