Skip to content

Commit 6b19e52

Browse files
committed
Update X-Real-IP documentation
1 parent 7030c18 commit 6b19e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/networking.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ file in `/etc/apache2/sites-available/rdiffweb`.
2828
ServerName rdiffweb.mydomain.com
2929
ProxyPass / http://localhost:8080/ retry=5
3030
ProxyPassReverse / http://localhost:8080/
31-
RemoteIPHeader X-Real-IP
31+
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
3232
</VirtualHost>
3333

3434
**SSL configuration**
@@ -54,7 +54,7 @@ Here is an example with SSL configuration.
5454
ProxyPass / http://localhost:8080/ retry=5
5555
ProxyPassReverse / http://localhost:8080/
5656
RequestHeader set X-Forwarded-Proto https
57-
RemoteIPHeader X-Real-IP
57+
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
5858

5959
# SSL Configuration
6060
SSLEngine on

0 commit comments

Comments
 (0)