How to Set Up Custom Domain using Reverse Proxy for Nginx/Apache

If you can't or don't want to use Cloudflare to configure your custom domain, here is another way how to achieve the same result. You can configure a reverse proxy.

The reverse proxy allows you to set up a tracking page with your domain on your web server using your SSL certificate. When a customer goes to your tracking page, the reverse proxy is called first. It acts as an intermediary between your domain and TrackMage so that it can use your SSL certificate.

Here is a simple illustration of how it works:

Here is how to configure a reverse proxy:

Step 1.

Go to your DNS provider and point your domain/subdomain to your webserver using A record.

Step 2.

Then add the config according to the type of your web server. This step might require advanced server configuration skills. Please contact your IT department.


server {
    listen 80;
    listen ssl;
    ssl_certificate fullchain.pem;
    ssl_certificate_key privkey.pem;
location / { proxy_pass; } }


<VirtualHost *:80>
    Redirect permanent /

<VirtualHost *:443> ServerName SSLEngine on SSLCertificateFile cert.pem SSLCertificateKeyFile key.pem ProxyPreserveHost On ProxyPass / ProxyPassReverse / </VirtualHost>

Step 3.

Now go back and add your custom domain to TrackMage

Did this solve your problem?