Re: Configure 2 virtuals hosts: 1 for a specific subdomain and 1 for as a catch-all

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

 



Hi,

these two files have names with numbers,
give the catch all file a file name that is alphabetical the later one;
then this works;

Walter

On Wed, December 4, 2013 09:07, Niels Rymenams wrote:
> Hi,
>
> I'm sorry for the n00b question, but this is the first time that I need to
> configure Apache myself and I can't seem to get my configuration right.
>
> I want to set up a webserver hosting a site (/home/user/www/website) under
> a subdomain: website.example.org
> Although I want to catch all other requests to the webserver on the domain
> and/or subdomains: example.org, host.example.org, www.example.org, ...
>
> I have a default Ubuntu 12.10 installation and have copied the default
> configuration in /etc/apache2/sites-available to user-site. I modified
> both
> (only the first few lines defining the ServerName/ServerAlias and
> DocumentRoot) using the Apache documentation.
> [Configurations are below this e-mail]
>
> When surfing to www.example.org I see the catch-all website, but any other
> subdomain goes to the main website.
>
> Any suggestions on what I'm doing wrong?
>
> Kind regards,
> Niels R.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux