ERP production Setup Issue ERROR 401

After setting production I am getting an issue with session expiry ERROR 401.

If I click Login or Home button also it is in same page only.

If I run curl -I http://fimererp ,
HTTP/1.1 401 UNAUTHORIZED
Server: nginx/1.24.0 (Ubuntu)
Date: Wed, 03 Dec 2025 05:16:02 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 332190
Connection: keep-alive
X-Page-Name: message
X-From-Cache: False
Link: </assets/frappe/dist/css/website.bundle.GMVLHIQE.css>; rel=preload; as=style,</assets/erpnext/dist/css/erpnext-web.bundle.IYLHV5VP.css>; rel=preload; as=style,</assets/frappe/dist/js/frappe-web.bundle.XLYPXD2N.js>; rel=preload; as=script,</website_script.js>; rel=preload; as=script,</assets/erpnext/dist/js/erpnext-web.bundle.J4A2DQB4.js>; rel=preload; as=script

Is there any solution for it?

Check - /etc/nginx/conf.d/*.conf
look for - server_name fimererp
maybe you put fimererp.com or .net or .lan in nginx configuration

This is a nginx configuration issue