Gitlab showing 404 while running behind nginx reverse proxy, all within a docker network

As the title says, I’m trying to serve Gitlab through an nginx reverse proxy, with both programs being run in separate docker containers connected through a docker network. A picture as an example: Linux Host ____________________________ | | | Docker | | __________________________| | | | | | Docker network (test-net)| | | ________________________| |…

Nginx Redirecting URL (301) with Query String to Final Destination in Single Chain

I need help with nginx redirection I want to redirect: example.com/new-clock/?bc=search&search_id=202 to www.example.com I have used this code in nginx config rewrite ^/new-clock/?bc=search&search_id=202$ https://www.example.com/ permanent; But it shows 404, when I remove the query string (?bc=search&search_id=202) and keep only rewrite ^/new-clock/$ https://www.example.com/ permanent; then it redirects to www.example.com/?bc=search&search_id=202 I want it to redirect to www.example.com…