diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-03-06 20:21:47 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-03-07 09:59:20 +0100 |
commit | e392b0028ebdd7d11cd36a5c45cd7af9330980e8 (patch) | |
tree | 8ce3f31f00d37b4b266021b990417227a28a48e7 /sonar-application | |
parent | f6aab2a350efbf8189a787e6dec0f3c41614ec4e (diff) | |
download | sonarqube-e392b0028ebdd7d11cd36a5c45cd7af9330980e8.tar.gz sonarqube-e392b0028ebdd7d11cd36a5c45cd7af9330980e8.zip |
SONAR-7430 Wrong remote IP in access.log when server is behind a reverse proxy
Diffstat (limited to 'sonar-application')
-rw-r--r-- | sonar-application/src/main/assembly/conf/sonar.properties | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sonar-application/src/main/assembly/conf/sonar.properties b/sonar-application/src/main/assembly/conf/sonar.properties index 28d9203ec79..03bf8d0a2f7 100644 --- a/sonar-application/src/main/assembly/conf/sonar.properties +++ b/sonar-application/src/main/assembly/conf/sonar.properties @@ -287,10 +287,13 @@ # sonar.log (see sonar.log.rollingPolicy and sonar.log.maxFiles). #sonar.web.accessLogs.enable=true -# Format of access log. It is ignored if sonar.web.accessLogs.enable=false. Value is: -# - "common" is the Common Log Format (shortcut for: %h %l %u %user %date "%r" %s %b) -# - "combined" is another format widely recognized (shortcut for: %h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}") -# - else a custom pattern. See http://logback.qos.ch/manual/layouts.html#AccessPatternLayout +# Format of access log. It is ignored if sonar.web.accessLogs.enable=false. Possible values are: +# - "common" is the Common Log Format, shortcut to: %h %l %u %user %date "%r" %s %b +# - "combined" is another format widely recognized, shortcut to: %h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" +# - else a custom pattern. See http://logback.qos.ch/manual/layouts.html#AccessPatternLayout. +# If SonarQube is behind a reverse proxy, then the following value allows to display the correct remote IP address: +#sonar.web.accessLogs.pattern=%i{X-Forwarded-For} %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" +# Default value is: #sonar.web.accessLogs.pattern=combined |