A
A
Alexander Karpov2016-08-15 05:06:01
linux
Alexander Karpov, 2016-08-15 05:06:01

How to view apache activity?

Я хочу видеть в консоли следующую информацию:
1. IP адрес пользователя
2. URL к которому он обращается
3. PHP скрипты или другие файлы, которые исполняются для этого господина.
Не получается собрать эту информацию воедино. По отдельности вроде могу найти информацию, а вот связать её воедино не получается. Помогите пожалуйста.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Захаров Александр, 2016-08-15
@Inkognitoss

For test conditions, Fiddler can be used . Yes Yes. I didn't make a reservation. It is fiddler. And it is for debugging on the server. Just need to poke around a bit. Set a reverse proxy in front of apache (most likely it will be nginx), which will redirect requests to fiddler, in fiddler allow access from outside:
, and in fiddler you need to redirect redirects to your apache site. (here's a description of this perfidy in fiddler ). Now you have all requests to apache visible at a glance with all the content, cookies, passwords, etc.
In short: the user makes requests to nginx, nginx redirects to your local computer running fiddler, fiddler redirects to apache. You watch the life of requests to Apache along with traffic live. Profit.

L
lexa322, 2016-08-15
@lexa322

Есть инструмент apachetop, консольная утилита, много чего можно посмотреть. Также встроенное средство server-info.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question