Nginx config: provide a complete conf
Mark the easy pitfalls and log locations
Prompt
Copy it whole, then replace the brackets with your own contentHandle this code task: Nginx config: give a complete conf. Code/error: [paste] Environment: [language/version/framework] Requirements: flag common pitfalls and log locations. Give your assessment first, then the changes, then how to verify.
Replace the text in [ ] with your own situation; ask long tasks in stages.
How to get better results
Read this before you fill it inFor reverse proxy, static caching, or HTTPS redirect setup.
Give the conclusion and impact scope first, then only the changed snippets (no full files), and finally one check that proves it works. Flag risky spots separately.
Reverse proxy api.example.com to localhost 8080, cache static files for 7 days, redirect HTTP to HTTPS automatically.
No full scenario given, config snippets won't piece together Missing WebSocket or upload size No log location, can't trace issues
If problems remain after the fix, paste the new error and the changed snippet back; keep debugging on the original approach, don't switch approaches and rewrite.
More like this: Writing code prompts · All prompts