0

Is there any option to log outgoing server requests within a local dev environment with php-fpm?

jmcclane
  • 159
  • 2
  • 14
  • Nginx configuration is rather off-topic here, there's superuser.com for that. PHP/FPM may be on-topic, but it's unclear what an "outgoing server request" means. Who sends a request where? – Ulrich Eckhardt Sep 07 '21 at 12:57
  • A request initiated from the server side (via php) to an external endpoint. – jmcclane Sep 07 '21 at 13:06
  • Well, just use a logger (https://www.php-fig.org/psr/psr-3/, `composer` can automatically find implementations). Nginx is btw completely outside of this, because it never executes any PHP code directly but only by IPC to FPM. – Ulrich Eckhardt Sep 07 '21 at 13:49
  • BTW: You can [edit] your question to clarify it. Having half the info in comments isn't useful for others looking with similar problems. – Ulrich Eckhardt Sep 07 '21 at 13:53

0 Answers0