Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prajithp/mod_reverseproxy

mod_reverseproxy - Yet Another reverse proxy module for Apache
https://github.com/prajithp/mod_reverseproxy

apache linux nginx nginx-proxy reverse-proxy varnish

Last synced: about 21 hours ago
JSON representation

mod_reverseproxy - Yet Another reverse proxy module for Apache

Awesome Lists containing this project

README

        

mod_reverseproxy
================

mod_reverseproxy - reverse proxy module for Apache

Based on mod_remoteip.c and mod_cloudflare.c , this Apache module will replace the remote_ip variable in user's logs with the correct remote IP sent from frontend web server like nginx and varnish.

To install, follow the instructions on:
```bash
wget https://raw.github.com/Prajithp/mod_reverseproxy/master/mod_reverseproxy.c
apxs -i -c -n mod_reverseproxy.so mod_reverseproxy.c
```
## Configuration Directives ##
```bash
ReverseProxyEnable (On|Off) - Enable reverse proxy

ReverseProxyRemoteIPHeader X-Real-IP - The header to use for the real IP
address.
ReverseProxyRemoteIPTrusted 127.0.0.1 - What IPs to adjust requests for
```

## Example Configuration ##
```bash

LoadModule reverseproxy_module modules/mod_reverseproxy.so

ReverseProxyEnable On
ReverseProxyRemoteIPHeader X-Real-IP
ReverseProxyRemoteIPTrusted 127.0.0.1
ReverseProxyRemoteIPTrusted 46.105.160.192

```

NOTES:

- If mod\_cloudflare or mod\_remoteip are already loaded on the same web server, the web server will crash because both modules try to set the remote IP to a different value.