[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem setting up a subdomain



On Fri, 08 Jun 2012 14:18:51 +0100, Keir Snow wrote:

> Relatively inexperienced at apache admin so please forgive any dumb
> mistakes on my part!
> 
> Been trying to set up a subdomain of my site, so I've created a config
> file in sites-available that looks like this:

(...)

> I've then enabled it using a2ensite however it seems to override my
> default config file and serve the subdomain content when the main site
> URL is used.

What are the Apache logs saying?

> Any ideas what I'm doing wrong?

I would check two things:

1/ DNS records are properly set for the alias (cname) and/or the "/etc/
hosts" file if you're using virtual hosts based on names.

2/ Ensure that you don't really need the "ServerAlias" directive for this.

Greetings,

-- 
Camaleón


Reply to: