Re: Logging issue

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

 



On 04/18/2021 12:14 PM, Richard wrote:
>> Date: Saturday, April 17, 2021 20:14:02 -0400
>> From: H <agents@xxxxxxxxxxxxxx>
>>
>> My ultimate goal is to be able to run different php apps each
>> potentially requiring its unique php version using php-fpm. I would
>> also like so separate access and error logs by app, ie
>> app1-access.log, app2-access.log etc.
>   ...
>
>> - To use unique php versions would require separating the apps into
>> individual VirtualHosts directives. Each VirtualHost directive can
>> then call its unique php-fpm handler.
>>
>> - I now understand this cannot be done using just an IP address in
>> the VirtualHost directive followed by app1, app2 etc. A domain name
>> must be used.
>   ...
>
>> Therefore, it seems I need to pivot and use a common domain name
>> instead of IP address:
>
> Your site-level logging issue and likely also your problem getting
> the different versions of php to be invoked were probably both due to
> your mal-configuration of the ServerName on the VirtualHost. When
> things aren't configured correctly the first VirtualHost instance
> will be used.
>
> This is not required:
>
>   > use a common domain name
>
> I.e., when using the name-based approach the host names used for the
> ServerName directive don't have to be subdomains under a single
> domainname. They can be any (resolvable) FQDN that points to your
> IPnumber.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
Follow-up question as I am again spending some time on this issue:

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?

Thank you.


---------------------------------------------------------------------
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