Setting up a Proxy with Madrivo

1. Set up reverse proxy (layer 7) as follows:

  • Front end should accept incoming connections on ports 80 and 443.
  • Back end should forward requests to and must pass Host and X-Forwarded-For headers.
  • Point domain(s) DNS to proxy public IP
  • You are responsible for SSL termination for each domain hosted on the proxy otherwise conversions may fail to track.

It is highly recommended to use a domain on the back end configuration as public IPs can change without notice. You are responsible for ensuring requests are forwarded to the correct endpoint and that the proxy respects DNS resolution as well as TTL.



This is an example for a typical nginx installation:
                server {
                    listen 80;
                    set $backend "";
                    location / {
                        proxy_pass $backend;
                        proxy_cache off;
                        proxy_buffering off;
                        proxy_set_header Host $host;
                        proxy_set_header X-Forwarded-For $remote_addr;
An easier way would be to use Cloudflare.

This takes care of both server config and SSL certificate.

We’ll send you helpful news and insights.

©2020 Madrivo   Privacy Policy Terms of Use

Privacy Policy Terms of Use

© 2020 Madrivo, all rights reserved