Forward AUTH issue

I hope you all are doing well. I need your support in forward auth as i m trying from last 7 days but not able to figure out the solution. traefik.http.middlewares.nginx-auth.forwardauth.authSignin='https://nginx.ovht.com/oauth2/start?rd=https://nginx.ovht.com/'

traefik.http.middlewares.nginx-auth.forwardauth.address=http://oauth-proxy2_oauth-proxy2:4180/oauth2/auth

what hapens right now is it does not redirect to login screen when oauth2 gives 401 and when i add this authSignin the host got disappeared

I think sharing two lines of config might not be enough to support you with your issue.

Share your full Traefik static and dynamic config, and compose file if used.

Check Traefik debug log, check Traefik access log in JSON format. Check browser developer console network tab.

Let’s first find out if the configuration is valid, then if it is using the right values.