Founded the solution, the problem that there was a loop with the CMS I used (i.e. TYPO3), I also had to configure the reverse proxy in TYPO3.
Use this configuration:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['reverseProxySSL'] = '*';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['reverseProxyIP'] = '*';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['reverseProxyHeaderMultiValue'] = 'first';