events { worker_connections 1024; } http { server { listen 8080; access_log log/access.log combined; error_log log/error.log error; default_type text/plain; location / { return 200 'Hello World\n'; } location /400 { return 400 'Bad Request\n'; } location /500 { return 500 'Server Error\n'; } location /server-status { stub_status on; access_log off; allow 127.0.0.1; deny all; # Comment out when running in Docker } location = /favicon.ico { access_log off; return 204; } } }