Re: [users@httpd] Getting hostname from FQDN as variable in config file

2018-05-10 Thread sebb
On 10 May 2018 at 15:09, Eric Covener wrote: > On Thu, May 10, 2018 at 9:56 AM, sebb wrote: >> Is it possible the access the hostname part of a FQDN in a config file? >> >> For example, suppose the config has the following condition: >> >> >> >> This might

Re: [users@httpd] Getting hostname from FQDN as variable in config file

2018-05-10 Thread Eric Covener
On Thu, May 10, 2018 at 9:56 AM, sebb wrote: > Is it possible the access the hostname part of a FQDN in a config file? > > For example, suppose the config has the following condition: > > > > This might resolve to a directory such as: > > /var/test/NAME.example.com > > Is there

[users@httpd] Getting hostname from FQDN as variable in config file

2018-05-10 Thread sebb
Is it possible the access the hostname part of a FQDN in a config file? For example, suppose the config has the following condition: This might resolve to a directory such as: /var/test/NAME.example.com Is there a way to resolve just the initial part of the host, i.e. NAME?