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

Re: Problem setting up a subdomain



Keir Snow:
> 
> Been trying to set up a subdomain of my site, so I've created a config
> file in sites-available that looks like this:
-- snip
> 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.

The mechanics of virtual hosts vs. main server config are a little bit
weird:

http://httpd.apache.org/docs/2.0/vhosts/details.html

If I were you, I would just leave the main server config alone and
create a VirtualHost section for all domain names I want to use.

J.
-- 
If I am asked 'How are you' more than a million times in my life I
promise to explode.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: