How do I make a subdomain of a subdomain?

Posted by joe on Ask Ubuntu See other posts from Ask Ubuntu or by joe
Published on 2011-12-06T20:43:05Z Indexed on 2012/04/06 5:41 UTC
Read the original article Hit count: 187

Filed under:
|

I have a server that hosts mydomain.com. Then I have a server that hosts subdomain1.mydomain.com.

On the subdomain1.mydomain.com server, how do I make subdomains? For instance I want to create subdomain2.subdomain1.mydomain.com

I have my subdomain1.mydomain.com site in /home/USER/public_html and it is working just fine. But When I try to create subdomain2.subdomain1.mydomain.com, it says Server not found in the browser. I have tried so many configurations in my /etc/hosts and /etc/apache2/sites-available/subdomain2.subdomain1.mydomain.com, without any luck

Can I get some detailed instructions maybe? I have looked everywhere and every place tells you different, with no luck.

Ubuntu Server 11.10 w/ the Lamp Stack option

© Ask Ubuntu or respective owner

Related posts about apache

Related posts about dns