Re: Logging issue

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

 



> 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




[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