Sub-domains and Virtualhosts

Hey Everyone

I just started using linode three days ago, I have moved my domain to my linode box. I installed Apache and configured it as it is using the Guides. My domain http://www.skadooshlabs.com is pointed towards a virtual host and it can be accessed via the browswer. I am having some problems/confusion with sub-domains and vhosts.

I created a sub-domain:

test.skadooshlabs.com

and i wanted to map it to test website i have hosted virtually on my apache server. I have followed the instructions, I added a A/AAAA record for this sub-domain, then I configured this virtual host with this config:

ServerAdmin webmaster@skadooshlabs.com

ServerName test.skadooshlabs.com

ServerAlias http://www.test.skadooshlabs.com

DocumentRoot /srv/www/test.skadooshlabs.com/public_html/

ErrorLog /srv/www/test.skadooshlabs.com/logs/error.log

CustomLog /srv/www/test.skadooshlabs.com/logs/access.log combined

It has been three days and I still get a Timeout in the browser. Can you please tell me what I am doing wrong?

Many Thanks

3 Replies

ServerAlias http://www.test.skadooshlabs.com http:// shouldn't be there

Also test.skadooshlabs.com has no dns records in linode's name servers. Check that you added one.

@obs:

ServerAlias http://www.test.skadooshlabs.com 

http:// shouldn't be there

Also test.skadooshlabs.com has no dns records in linode's name servers. Check that you added one.

Thanks, I have removed the http:// from the config. But i did add a A/AAAA record for test.skadooshlabs.com as told in the guide, Isnt that how we add sub-domains in linode's dns manager?

@aliirz:

Thanks, I have removed the http:// from the config. But i did add a A/AAAA record for test.skadooshlabs.com as told in the guide, Isnt that how we add sub-domains in linode's dns manager?

Are you using linodes DNS manager to host your DNS? Or is it still on your registrars hosted DNS..

test.skadooshlabs.com still doesn't resolve at all, so DNS isn't setup properly.

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