Mailing List Archive

1 2  View All
RE: Logging issue [ In reply to ]
Quick question re: DNS. Can CNAMEs be used, or can they only be A records?
(Assuming each sub-domain is on same IP address as domain.

-----Original Message-----
From: Richard <lists-apache@listmail.innovate.net>
Sent: Thursday, April 22, 2021 6:51 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Logging issue


> Date: Thursday, April 22, 2021 20:24:02 -0400
> From: H <agents@meddatainc.com>
>
> On 04/22/2021 06:02 PM, Richard wrote:
>>> Date: Thursday, April 22, 2021 16:53:56 -0400
>>> From: H <agents@meddatainc.com>
>>>
>>> I read on one webpage that the locations (ie app1, app2 etc) have to
>>> have their own A records. Does that mean that I need to have
>>> app1.mydomain.com, app2.mydomain.com etc. registered individually
>>> with my domain registrar for each of them to get its own A record?
>> Yes, the sub-domains need A-records, that is done through the DNS
>> records you set up for the domain. Only the *domain* (e.g.,
>> example.com) is registered with the registrar.
>>
> Great, thank you. I just did that and another piece of knowledge fell
> into place... :-) I will let it propagate overnight and look at it
> again tomorrow.
>

DNS is a query and cache system, records don't "propagate". If done
properly, once you have entered a record and the zone has been loaded a
query should result in an accurate answer. "Properly" includes bringing down
the TTL if you are changing details on an existing record, and of course
updating the serial so that secondaries know to update.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Logging issue [ In reply to ]
On Friday 23 April 2021 at 18:01:58, paul.leo@stgconsulting.com wrote:

> Quick question re: DNS. Can CNAMEs be used, or can they only be A records?
> (Assuming each sub-domain is on same IP address as domain.

You can use CNAMEs.

Just bear in mind that if you do use a CNAME for a hostname, you cannot have
anything else (including another CNAME) for that hostname.

So, if you want a hostname to resolve to one IP address and not have any MX
records etc, a CNAME is fine.

If the hostname needs to resolve to more than one IP address, or resolve to an
address and also have an MX record, or similar, then you cannot use a CNAME.

Antony.

> -----Original Message-----
> From: Richard <lists-apache@listmail.innovate.net>
> Sent: Thursday, April 22, 2021 6:51 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Logging issue
>
> > Date: Thursday, April 22, 2021 20:24:02 -0400
> > From: H <agents@meddatainc.com>
> >
> > On 04/22/2021 06:02 PM, Richard wrote:
> >>> Date: Thursday, April 22, 2021 16:53:56 -0400
> >>> From: H <agents@meddatainc.com>
> >>>
> >>> I read on one webpage that the locations (ie app1, app2 etc) have to
> >>> have their own A records. Does that mean that I need to have
> >>> app1.mydomain.com, app2.mydomain.com etc. registered individually
> >>> with my domain registrar for each of them to get its own A record?
> >>
> >> Yes, the sub-domains need A-records, that is done through the DNS
> >> records you set up for the domain. Only the *domain* (e.g.,
> >> example.com) is registered with the registrar.
> >
> > Great, thank you. I just did that and another piece of knowledge fell
> > into place... :-) I will let it propagate overnight and look at it
> > again tomorrow.
>
> DNS is a query and cache system, records don't "propagate". If done
> properly, once you have entered a record and the zone has been loaded a
> query should result in an accurate answer. "Properly" includes bringing
> down the TTL if you are changing details on an existing record, and of
> course updating the serial so that secondaries know to update.

--
It is also possible that putting the birds in a laboratory setting
inadvertently renders them relatively incompetent.

- Daniel C Dennett

Please reply to the list;
please *don't* CC me.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Logging issue [ In reply to ]
Thanks

-----Original Message-----
From: Antony Stone <Antony.Stone@apache.open.source.it>
Sent: Friday, April 23, 2021 10:25 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Logging issue

On Friday 23 April 2021 at 18:01:58, paul.leo@stgconsulting.com wrote:

> Quick question re: DNS. Can CNAMEs be used, or can they only be A
records?
> (Assuming each sub-domain is on same IP address as domain.

You can use CNAMEs.

Just bear in mind that if you do use a CNAME for a hostname, you cannot have
anything else (including another CNAME) for that hostname.

So, if you want a hostname to resolve to one IP address and not have any MX
records etc, a CNAME is fine.

If the hostname needs to resolve to more than one IP address, or resolve to
an address and also have an MX record, or similar, then you cannot use a
CNAME.

Antony.

> -----Original Message-----
> From: Richard <lists-apache@listmail.innovate.net>
> Sent: Thursday, April 22, 2021 6:51 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Logging issue
>
> > Date: Thursday, April 22, 2021 20:24:02 -0400
> > From: H <agents@meddatainc.com>
> >
> > On 04/22/2021 06:02 PM, Richard wrote:
> >>> Date: Thursday, April 22, 2021 16:53:56 -0400
> >>> From: H <agents@meddatainc.com>
> >>>
> >>> I read on one webpage that the locations (ie app1, app2 etc) have
> >>> to have their own A records. Does that mean that I need to have
> >>> app1.mydomain.com, app2.mydomain.com etc. registered individually
> >>> with my domain registrar for each of them to get its own A record?
> >>
> >> Yes, the sub-domains need A-records, that is done through the DNS
> >> records you set up for the domain. Only the *domain* (e.g.,
> >> example.com) is registered with the registrar.
> >
> > Great, thank you. I just did that and another piece of knowledge
> > fell into place... :-) I will let it propagate overnight and look at
> > it again tomorrow.
>
> DNS is a query and cache system, records don't "propagate". If done
> properly, once you have entered a record and the zone has been loaded
> a query should result in an accurate answer. "Properly" includes
> bringing down the TTL if you are changing details on an existing
> record, and of course updating the serial so that secondaries know to
update.

--
It is also possible that putting the birds in a laboratory setting
inadvertently renders them relatively incompetent.

- Daniel C Dennett

Please reply to the list;
please *don't* CC
me.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Logging issue [ In reply to ]
On 04/22/2021 08:24 PM, H wrote:
> On 04/22/2021 06:02 PM, Richard wrote:
>>> Date: Thursday, April 22, 2021 16:53:56 -0400
>>> From: H <agents@meddatainc.com>
>>>
>>> I read on one webpage that the locations (ie app1, app2 etc) have
>>> to have their own A records. Does that mean that I need to have
>>> app1.mydomain.com, app2.mydomain.com etc. registered individually
>>> with my domain registrar for each of them to get its own A record?
>> Yes, the sub-domains need A-records, that is done through the DNS
>> records you set up for the domain. Only the *domain* (e.g.,
>> example.com) is registered with the registrar.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
> Great, thank you. I just did that and another piece of knowledge fell into place... :-) I will let it propagate overnight and look at it again tomorrow.
>
I am very happy to share that with the help of this group, I now have several php applications running on the server. All but one of the apps use php 7.2, with one using 7.0. Logging to separate error files and access files now also works fine. IOW, the piece I missed was that IP address cannot be used to differentiate between various virtual hosts, instead a combination of domain name and subdomain needs to be used and A records created.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Logging issue [ In reply to ]
On Sun, Apr 25, 2021 at 5:34 PM H <agents@meddatainc.com> wrote:
>
> On 04/22/2021 08:24 PM, H wrote:
> > On 04/22/2021 06:02 PM, Richard wrote:
> >>> Date: Thursday, April 22, 2021 16:53:56 -0400
> >>> From: H <agents@meddatainc.com>
> >>>
> >>> I read on one webpage that the locations (ie app1, app2 etc) have
> >>> to have their own A records. Does that mean that I need to have
> >>> app1.mydomain.com, app2.mydomain.com etc. registered individually
> >>> with my domain registrar for each of them to get its own A record?
> >> Yes, the sub-domains need A-records, that is done through the DNS
> >> records you set up for the domain. Only the *domain* (e.g.,
> >> example.com) is registered with the registrar.
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> > Great, thank you. I just did that and another piece of knowledge fell into place... :-) I will let it propagate overnight and look at it again tomorrow.
> >
> I am very happy to share that with the help of this group, I now have several php applications running on the server. All but one of the apps use php 7.2, with one using 7.0. Logging to separate error files and access files now also works fine. IOW, the piece I missed was that IP address cannot be used to differentiate between various virtual hosts, instead a combination of domain name and subdomain needs to be used and A records created.
>
I am going to be doing similar pdq - - - - would you care to share
your 'virtualhost' file?

TIA

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Logging issue [ In reply to ]
On 04/25/2021 06:39 PM, o1bigtenor wrote:
> On Sun, Apr 25, 2021 at 5:34 PM H <agents@meddatainc.com> wrote:
>> On 04/22/2021 08:24 PM, H wrote:
>>> On 04/22/2021 06:02 PM, Richard wrote:
>>>>> Date: Thursday, April 22, 2021 16:53:56 -0400
>>>>> From: H <agents@meddatainc.com>
>>>>>
>>>>> I read on one webpage that the locations (ie app1, app2 etc) have
>>>>> to have their own A records. Does that mean that I need to have
>>>>> app1.mydomain.com, app2.mydomain.com etc. registered individually
>>>>> with my domain registrar for each of them to get its own A record?
>>>> Yes, the sub-domains need A-records, that is done through the DNS
>>>> records you set up for the domain. Only the *domain* (e.g.,
>>>> example.com) is registered with the registrar.
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>> Great, thank you. I just did that and another piece of knowledge fell into place... :-) I will let it propagate overnight and look at it again tomorrow.
>>>
>> I am very happy to share that with the help of this group, I now have several php applications running on the server. All but one of the apps use php 7.2, with one using 7.0. Logging to separate error files and access files now also works fine. IOW, the piece I missed was that IP address cannot be used to differentiate between various virtual hosts, instead a combination of domain name and subdomain needs to be used and A records created.
>>
> I am going to be doing similar pdq - - - - would you care to share
> your 'virtualhost' file?
>
> TIA
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
Delighted to, limited as my knowledge is.

First, my setup is CentOS7, apache and using php-fpm to allow several versions of php to be used simultaneously. I am not familiar with pdq and have no insight there.

Second, the various apps need to be reachable via a domain address and each app residing in its own subdirectory needs its own subdomain. IOW, app1.mydomain.com, app2.mydomain.com etc.

Each of the subdomains can point to the same IP address as mydomain.com but need to have A records configured by you with your domain name registrator.

Leaving out configuration issues, this is an example of a virtualhost file, app1.conf, for app1.mydomain.com:

<VirtualHost *:80>
    ServerName app1.mydomain.com
    DocumentRoot /var/www/html/app1

    Include /etc/httpd/conf.d/rh-php70-php-fpm.conf

    ErrorLog /var/log/httpd/app1-error.log
    CustomLog /var/log/httpd/app1-access.log combined

    DirectoryIndex index.html index.php
   
    <Directory "/var/www/html/app1">
        Options none
        AllowOverride all
        Require all granted
    </Directory>
</VirtualHost>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Logging issue [ In reply to ]
On Sun, Apr 25, 2021 at 6:30 PM H <agents@meddatainc.com> wrote:
>
> On 04/25/2021 06:39 PM, o1bigtenor wrote:
> > On Sun, Apr 25, 2021 at 5:34 PM H <agents@meddatainc.com> wrote:
> >> On 04/22/2021 08:24 PM, H wrote:
> >>> On 04/22/2021 06:02 PM, Richard wrote:
> >>>>> Date: Thursday, April 22, 2021 16:53:56 -0400
> >>>>> From: H <agents@meddatainc.com>
> >>>>>
> >>>>> I read on one webpage that the locations (ie app1, app2 etc) have
> >>>>> to have their own A records. Does that mean that I need to have
> >>>>> app1.mydomain.com, app2.mydomain.com etc. registered individually
> >>>>> with my domain registrar for each of them to get its own A record?
> >>>> Yes, the sub-domains need A-records, that is done through the DNS
> >>>> records you set up for the domain. Only the *domain* (e.g.,
> >>>> example.com) is registered with the registrar.
> >>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>>
> >>> Great, thank you. I just did that and another piece of knowledge fell into place... :-) I will let it propagate overnight and look at it again tomorrow.
> >>>
> >> I am very happy to share that with the help of this group, I now have several php applications running on the server. All but one of the apps use php 7.2, with one using 7.0. Logging to separate error files and access files now also works fine. IOW, the piece I missed was that IP address cannot be used to differentiate between various virtual hosts, instead a combination of domain name and subdomain needs to be used and A records created.
> >>
> > I am going to be doing similar pdq - - - - would you care to share
> > your 'virtualhost' file?
> >
> > TIA
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> Delighted to, limited as my knowledge is.
>
> First, my setup is CentOS7, apache and using php-fpm to allow several versions of php to be used simultaneously. I am not familiar with pdq and have no insight there.
>
> Second, the various apps need to be reachable via a domain address and each app residing in its own subdirectory needs its own subdomain. IOW, app1.mydomain.com, app2.mydomain.com etc.
>
> Each of the subdomains can point to the same IP address as mydomain.com but need to have A records configured by you with your domain name registrator.
>
> Leaving out configuration issues, this is an example of a virtualhost file, app1.conf, for app1.mydomain.com:
>
> <VirtualHost *:80>
> ServerName app1.mydomain.com
> DocumentRoot /var/www/html/app1
>
> Include /etc/httpd/conf.d/rh-php70-php-fpm.conf
>
> ErrorLog /var/log/httpd/app1-error.log
> CustomLog /var/log/httpd/app1-access.log combined
>
> DirectoryIndex index.html index.php
>
> <Directory "/var/www/html/app1">
> Options none
> AllowOverride all
> Require all granted
> </Directory>
> </VirtualHost>
>

Thank you for sharing!!!!

pdq - - - acronym for pretty d@#$ quick - - - - its a lot older than
micro-computers - - - sorry!

Thanking you for your assistance!!!!!!!!!!!!!!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

1 2  View All