Thanks all who have spent time on this. We have found the cause of this issue.
As part of client's standard, they have blocked contents spoofing in Apache server config which included html content as well.
Once we had the exception for html content (i.e) allow them in Apache config, login to IP started working.