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

You can set up your custom domain to point to a reverse proxy using Nginx/Apache web server, which is more suitable for a technical audience. If you have limited technical knowledge, it's recommended to use Cloudflare for configuring your custom domain.

The reverse proxy enables you to establish a tracking page with your domain on your web server, utilizing your SSL certificate. When a customer visits your tracking page, the reverse proxy is invoked first. It serves as an intermediary between your domain and TrackMage, allowing the use of your SSL certificate.

Here is a simple illustration demonstrating how it works:

Here are the steps to configure a reverse proxy:

Step 1

Navigate to your DNS provider and use an A record to direct your domain or subdomain to your web server.

Step 2

Afterward, configure the settings based on your web server type. This step could demand advanced server configuration skills. If needed, don't hesitate to reach out to your IT department for assistance.

Nginx

server {    listen 80;    listen 0.0.0.0:443 ssl;    ssl_certificate fullchain.pem;    ssl_certificate_key privkey.pem;    server_name tracking.my-business.com;
location / { proxy_pass https://my-business.trackmage.com/; }}

Apache

<VirtualHost :80>    ServerAdmin support@example.com    ServerName tracking.my-business.com    Redirect permanent / https://tracking.my-business.com/</VirtualHost><VirtualHost :443>    ServerName tracking.my-business.com    SSLEngine on    SSLCertificateFile cert.pem    SSLCertificateKeyFile key.pem    ProxyPreserveHost On    ProxyPass / https://my-business.trackmage.com/    ProxyPassReverse / https://my-business.trackmage.com/</VirtualHost>

Step 3

Now, return to TrackMage and proceed to add your custom domain

If you need help, please don't hesitate to contact us via chat or send a message to support@trackmage.com.


Did this solve your problem?