SAML behind nginx

You are right, Apache at UCS use SNI for SSL. But instead of changing the URL at the nginx side, the prefered way is to set the external fqdn for SSO at UCS side, see

You may also have a look at our Cool Solution - Reverse Proxy for UCS Portal and Services, where we have an example configuration for nginx.