Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2020 20:38:34 +0100
From:      freebsd@boosten.org
To:        freebsd-questions <freebsd-questions@freebsd.org>
Cc:        Dale Scott <dalescott@shaw.ca>
Subject:   Re: Please help with Apache virtual servers and DNS trouble (I think)
Message-ID:  <3D5DAD93-8EE2-487B-B678-F07F7B753A44@boosten.org>
In-Reply-To: <436222222.38328265.1605899638737.JavaMail.zimbra@shaw.ca>
References:  <dbf88edf-7b25-4944-b6c9-5e0d08533265@email.android.com> <df9e09e9-587b-f01b-2849-a90cbd518534@yuripv.dev> <958896405.36997717.1605885037710.JavaMail.zimbra@shaw.ca> <57E903C2-0CB4-4DAD-8F10-12A6879A8029@boosten.org> <436222222.38328265.1605899638737.JavaMail.zimbra@shaw.ca>

next in thread | previous in thread | raw e-mail | index | archive | help


> 
>> What do you mean with ’subdomain’? A subdomain would mean something like
>> 'servers.dalescott.net' in your case, and your mantisbt server would then be
>> reachable as mantisbt.servers.dalescott.net. So please elaborate.
> 
> Networking is not my strength ; IIUC my tld is dalescott.net, and I am using subdomains
> www, mantisbt, timetracker... or fully qualified www.dalescott.net, mantisbt.dalescott.net,
> timetracker.dalescott.net, etc. Is my terminology incorrect?


Yes, tld (Top Level Domain) = .net. Your domain name is dalescort.net, and ‘www’ (and others) are called hosts (which in DNS terminology are either A records or CNAMEs, if they refer to another A record).


> 
> Also, fwiw, from my httpd.conf:
> 
> Listen 80
> ServerName www.dalescott.net:80
> 
> and my typical vhost entry in httpd-vhosts.com:
> 
> <VirtualHost mantisbt.dalescott.net:80>
>    DocumentRoot "/usr/local/www/mantisbt"
>    <Directory "/usr/local/www/mantisbt">
>        allow from all
>        Options None
>        Require all granted
>    </Directory>
> </VirtualHost>
> 


I think you need a ServerName directive in your VirtualHost setup, so in the above example ServerName mantisbt.dalescott.net <http://mantisbt.dalescott.net/>. Without that directive my hosts don’t work.

Peter

—
It never hurts to help — Eek!






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D5DAD93-8EE2-487B-B678-F07F7B753A44>