(#12466) unset X-Forwarded-For header
Without this patch the handling of X-Forwarded-For headers is insecure in a default apache conf supplied with puppet. This patch ensures X-Forwarded-For headers are dropped. Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
This commit is contained in:
Родитель
2d51b642fc
Коммит
8f84207c12
|
@ -26,6 +26,9 @@ Listen 8140
|
|||
SSLVerifyDepth 1
|
||||
SSLOptions +StdEnvVars
|
||||
|
||||
# This header needs to be set if using a loadbalancer or proxy
|
||||
RequestHeader unset X-Forwarded-For
|
||||
|
||||
RequestHeader set X-SSL-Subject %{SSL_CLIENT_S_DN}e
|
||||
RequestHeader set X-Client-DN %{SSL_CLIENT_S_DN}e
|
||||
RequestHeader set X-Client-Verify %{SSL_CLIENT_VERIFY}e
|
||||
|
|
Загрузка…
Ссылка в новой задаче