# REMOTE\_ADDR in Apache Proxy Examples

**URL:** <https://vaultwarden.discourse.group/t/remote-addr-in-apache-proxy-examples/92>\
**Category:** Help\
**Created:** [May 4, 2020, 7:46am UTC](https://vaultwarden.discourse.group/t/remote-addr-in-apache-proxy-examples/92 "2020-05-04T07:46:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandiloko](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@pandiloko](https://vaultwarden.discourse.group/u/pandiloko)\
**Post date:** [May 4, 2020, 7:46am UTC](https://vaultwarden.discourse.group/t/remote-addr-in-apache-proxy-examples/92/1 "2020-05-04T07:46:56Z")

</div>

Hi,

I have a working instance of bitwardenrs using Docker and Apache as a reverse proxy. I took the Apache configuration directly from your examples, just changing the necessary bits. Everything is working fine so far.

However I recently notice that the config says:  
`RequestHeader set X-Real-IP %{REMOTE_ADDR}s`

There are two Apache examples with the same line with an “s” after the curly brackets. Is that “s” right? I’m not an Apache expert but never saw something similar nor have I found a reference in the documentation.

Thanks!!

---

<div class="post-metadata">

**Author:** ![oop](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/oop/32/49_2.png) [@oop](https://vaultwarden.discourse.group/u/oop)\
**Post date:** [May 4, 2020, 1:19pm UTC](https://vaultwarden.discourse.group/t/remote-addr-in-apache-proxy-examples/92/2 "2020-05-04T13:19:34Z")

</div>

[https://httpd.apache.org/docs/2.4/en/mod/mod\_headers.html#header](https://httpd.apache.org/docs/2.4/en/mod/mod_headers.html#header)

Good question. Spent some time but finally found it.

 ![image](https://global.discourse-cdn.com/free1/uploads/vaultwarden/original/1X/f08ac20e7eeeaaef06c569cbf360ba0016eeed43.png)

---

<div class="post-metadata">

**Author:** ![oop](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/oop/32/49_2.png) [@oop](https://vaultwarden.discourse.group/u/oop)\
**Post date:** [May 4, 2020, 1:23pm UTC](https://vaultwarden.discourse.group/t/remote-addr-in-apache-proxy-examples/92/3 "2020-05-04T13:23:21Z")

</div>

Just want to say that the Apache httpd doc is very difficult to read…

---

<div class="post-metadata">

**Author:** ![oop](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/oop/32/49_2.png) [@oop](https://vaultwarden.discourse.group/u/oop)\
**Post date:** [May 4, 2020, 1:30pm UTC](https://vaultwarden.discourse.group/t/remote-addr-in-apache-proxy-examples/92/4 "2020-05-04T13:30:17Z")

</div>

I am not using Apache though, according to what I’ve read, it’s also possible to use `expr=%{REMOTE_ADDR}`

[https://httpd.apache.org/docs/2.4/en/expr.html#vars](https://httpd.apache.org/docs/2.4/en/expr.html#vars)

`%{REMOTE_ADDR}s` may also works because:

[https://httpd.apache.org/docs/2.4/en/mod/mod\_ssl.html#envvars](https://httpd.apache.org/docs/2.4/en/mod/mod_ssl.html#envvars)

 ![image](https://global.discourse-cdn.com/free1/uploads/vaultwarden/original/1X/73689f1c24f2686b1512f7d096676332fbb6e503.png)

---

<div class="post-metadata">

**Author:** ![pandiloko](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@pandiloko](https://vaultwarden.discourse.group/u/pandiloko)\
**Post date:** [May 4, 2020, 4:08pm UTC](https://vaultwarden.discourse.group/t/remote-addr-in-apache-proxy-examples/92/5 "2020-05-04T16:08:56Z")

</div>

I’ll be damned!! TIL! Thanks

I’ve figured that it should be OK since it was working fine and X-Real-IP seems to be important but couldn’t find the documentation in Apache site. You’re right. It is kind of difficult to find.

Thanks again!!
