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

Re: Problem setting up a subdomain



Not sure I follow sorry, where would I create this section? I thought
by putting something in sites-available I was leaving the main config
alone?

Keir

On Fri, Jun 8, 2012 at 2:41 PM, Jochen Spieker <ml@well-adjusted.de> wrote:
> 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>


Reply to: