Nginx Configuration Debug Configuration nginx apache nginx php nginx rewrite

Source: Internet
Author: User
Configuration items for debugging and locating problems

Whether to run Nginx in daemon mode

Syntax: Daemon On|off
Default: Daemon on
Role: Daemons are processes that can be detached from the terminal and run in the background. He was removed from the process to avoid the information in the process of printing at the terminal, so that the process will not be interrupted by any information generated by the terminal. By default, the daemon is turned on.
However, in order to debug, it can be closed.

Whether to work in a master/worker way

Syntax: master_process on|off
Default: Master_process on
Role: Nginx is the master process to manage multiple worker processes run, almost in all product environments, Nginx will work in this way.
For ease of commissioning, you can turn off. This will not fork out the worker subprocess to process the request.

Settings for the error log

Syntax: Error_log/path/file level
Default: Error_log/logs/error.log Error
Role: The error log is the best tool for nginx location problem, we can set the log path and level according to our own needs.
/path/file is a specific file, or it can be/dev/null, so that the log is not generated, which is the only way to turn off error_log, or it can be stderr, so that the log output to the standard error output
Level is the log levels; Debug,info,notice,warn,error,crit,alert,emerg, from left to right, in turn.

Whether to deal with several special tuning pilots

Syntax: debug_points [Stop|abort]
Function: This configuration is used to help users debug Nginx, he receives 2 parameters: Stop and abort. Nginx sets the pilot in some key error logic. If set to stop, the Nginx code emits a sigstop signal when it executes to these debug points. If abort, a coredump file is generated.
This configuration item is not normally used.

Output debug-level logs only for the specified user

Syntax: debug_connection [ip| CIDR]
Function: This configuration item is actually part of the event class, so it is only valid if it is placed in events

Limit the size of the Coredump core dump file

Syntax: Worker_rlimit_core size;

Specify the directory that Coredump generates

Syntax: worker_directory path
Make sure that the Nginx process has permission to access this directory.

'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
  • '). Text (i)); }; $numbering. FadeIn (1700); }); });

    The above describes the Nginx configuration Debug configuration, including Nginx aspects of the content, I hope that the PHP tutorial interested friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.