Fix Externally Managed Error: Create Virtual Environment - Fixing Nginx 403 Permission Denied-Fixing Nginx 502 Bad Gateway in Docker: Practical Steps

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.