I requested my hosting provider add my domain to their zone file so I could use their DNS. Apparently I have to notify them each time I wish to add or remove a domain.
Currently my hosts file looks like this:
Code: Select all
cl-t022-201cl:/etc# cat hosts
127.0.0.1 localhost
127.0.1.1 deb.[b]mydomain[/b].com deb
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
xx.xx.xxx.xxx cl-t022-201cl.[b]mydomain[/b].com cl-t022-201cl
If I wanted to add multiple subdomains to a single IP address but each subdomain pointed to a different subdirectory, how is this done?
Basically I have one domain name (mycompany.com) and I have a single dedicated IP but I wish to have many subdomains each of which should point to a subdirectory.
Can someone show me what this might look like?
Cheers