M
M
MagnetW1nner2021-07-11 00:03:40
Nginx
MagnetW1nner, 2021-07-11 00:03:40

How to configure nginx.conf in Debian 10 to nginx webserver to generate lots of logging and abnormal situation for nginx?

Here's what you need to do: You
need to install the nginx web server version 1.14.2 in the OS, generate as many different events as possible in the log files generated by user actions, and then analyze each type of event received from the web server.

to receive some events, it is necessary to artificially create an abnormal situation for the web server.


events received from other OS subsystems are not required to be considered.


The server was successfully installed, it works. So, how do I generate a lot of logs, besides, create an emergency situation to receive certain logs? Tried wget localhost requests , downloads index.html, generates a log in the access.log file, error.log is empty

. If you write a detailed instruction, I will be very grateful. Thanks in advance!

Here's what you need in the report:
Contents of the web server configuration files;
The full content of the log files received from the web server;
Description of each type of events received from the web server, indicating:
Interpretation of the event;
The list of data that can be obtained from the event.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2021-07-11
@MagnetW1nner

"Abnormal situation for the web server" - too vague term.
Apparently, this refers to a request that the server will not be able to process - crooked, incomplete, or some other. To do this, it is enough to send something that does not meet the HTTP standard or is not provided / prohibited in the config. The file is too large, unsupported TLS cipher, etc.
In my opinion, as an administrator, this is an "abnormal situation", for example, the lack of free memory in the OS or a refusal to create a file descriptor, running out of disk space.
"Many logs" can be generated by any load testing utility - ab, siege, thousands of them.

C
Constantine, 2021-07-11
@psycho-coder

For example, add a location

location ~ \.php$ {
                fastcgi_pass unix:/usr/local/var/run/php-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
                fastcgi_param DOCUMENT_ROOT $realpath_root;
                include fastcgi_params;
        }

upload the app.php file and follow it. There will be a 500 error

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question