Answer the question
In order to leave comments, you need to log in
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.
Answer the question
In order to leave comments, you need to log in
"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.
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;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question