W
W
WebDev2017-10-25 15:55:02
C++ / C#
WebDev, 2017-10-25 15:55:02

Execute php script on every nginx request?

I have a site on vue.js, on each visit I need to record extended information about the request. Information from nginx's access_log is not enough. How to make nginx run a file with the necessary php script before returning the site?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
Boris Korobkov, 2017-10-25
@BorisKorobkov

Write access_log.

A
Andrey, 2017-10-25
@andrey004

make a request from the site.
this is commonly referred to as the "hidden pixel".

N
Nurlan, 2017-10-26
@daager

Information from nginx's access_log is not enough.

So create your log_format which will have more information.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question