Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/prajithp/mod_reverseproxy
- Owner: Prajithp
- License: apache-2.0
- Created: 2013-11-17T12:51:58.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-06-15T06:07:07.000Z (over 7 years ago)
- Last Synced: 2023-08-04T00:43:04.183Z (over 1 year ago)
- Topics: apache, linux, nginx, nginx-proxy, reverse-proxy, varnish
- Language: C
- Homepage:
- Size: 25.4 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 proxyReverseProxyRemoteIPHeader 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 ##
```bashLoadModule 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.