Fixes in controller base, updated nginx config in nginx.md