Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Modify nginx.conf for diagnostic settings with access/error.log #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions terraform/deployments/with-diagnostic-setting-logging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ events {
worker_connections 4000;
}

error_log /var/log/nginx/error.log error;

http {
log_format access_format '$remote_addr - "$remote_user" [$time_local] "$request" $status';
error_log /var/log/nginx/error.log error;
access_log /var/log/nginx/access.log access_format;
server {
listen 80 default_server;
server_name localhost;
location / {
location = / {
return 200 'Hello World';
}
}
Expand Down