X-Forwarded-ForX-Forwarded-ProtoTo ensure that Cloud Platform trusts the other supported proxy headers, you can re-enable such headers by updating your site’s settings.php file. For more information, see Ensuring that an application trusts the proxy headers. This applies to cases when your application (glossary term, activate to view definition) uses other headers.
To view the list of proxy headers used by your application:
*.acquia-sites.com domain./admin/reports/status/php) where the request headers used by the application is displayed.To enable the proxy headers, add the code mentioned in the Ensuring that an application trusts the proxy headers section.
For any assistance, create a Support ticket.
If your application uses other trusted proxy headers, you must add a setting for each header to your settings.php file after the require line. For example,
// Trust the X-Forwarded-Host header.
if (isset($settings['reverse_proxy_trusted_headers'])) {
$settings['reverse_proxy_trusted_headers'] |= \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST;
}
else
{
$settings['reverse_proxy_host_header'] = 'X_FORWARDED_HOST';
}For other proxy headers, access Drupal’s default.settings.php file.
Acquia recommends that you test the behavior to ensure that the change does not impact your application.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
However, Cloud Platform trusts the following proxy headers by default:
X-Forwarded-ForX-Forwarded-ProtoTo ensure that Cloud Platform trusts the other supported proxy headers, you can re-enable such headers by updating your site’s settings.php file. For more information, see Ensuring that an application trusts the proxy headers. This applies to cases when your application (glossary term, activate to view definition) uses other headers.
To view the list of proxy headers used by your application:
*.acquia-sites.com domain./admin/reports/status/php) where the request headers used by the application is displayed.To enable the proxy headers, add the code mentioned in the Ensuring that an application trusts the proxy headers section.
For any assistance, create a Support ticket.
If your application uses other trusted proxy headers, you must add a setting for each header to your settings.php file after the require line. For example,
// Trust the X-Forwarded-Host header.
if (isset($settings['reverse_proxy_trusted_headers'])) {
$settings['reverse_proxy_trusted_headers'] |= \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST;
}
else
{
$settings['reverse_proxy_host_header'] = 'X_FORWARDED_HOST';
}For other proxy headers, access Drupal’s default.settings.php file.
Acquia recommends that you test the behavior to ensure that the change does not impact your application.
If this content did not answer your questions, try searching or contacting our support team for further assistance.