You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to separate the logs to different endpoints, it's a good idea to support HTTP status code like error_page directive.
# nginx.conf
user nginx;
error_log /var/www/log/error.log warn;
http {
log_format main '$status -> "$request"';# Keep the access_log's current functionality.
access_log /var/www/log/access.log main;
include /etc/nginx/http.d/example.com.conf;
}
Describe the feature you'd like to add to nginx
In order to separate the logs to different endpoints, it's a good idea to support HTTP status code like
error_page
directive.Describe the problem this feature solves
Separation of logs.
Additional context
Keep the
access_log
's current functionality.I except these at the end:
The text was updated successfully, but these errors were encountered: