Nginx configration for tracking domains

AHK

Active Member
Hello,
i install Nginx on server and set my config file exactly like
https://kb.mailwizz.com/articles/nginx-server-basic-configuration-for-mailwizz/

i only make change in servername like this
server_name example.com www.example.com ~^.*$;

~^.*$; mean to accept all domains, which is working.

the only issue is when user click on unsubscribe link , it bring server IP in address bar.

how can i set tracking domain in Nginx ?

i have different domains as tracking, and each domain name CNAME record which point to main tracking.example.com
like
tracking.domain1.com CNAME tracking.example.com
tracking.domain2.com CNAME tracking.example.com

and CNAME is define as
tracking.example.com CNAME 192.XX.XX.12

what i want is to keep the tracking domain in browser bar and show the page without server IP.

one important thing when i use tracking domain like this, it work fine
http://tracking.example.com/lists/215jwrt12/unsubscribe/ab97ek7f130/axy742ad3zy272
but when i use like this
http://tracking.example.com/campaig...7ek7f130/13ab53c24b1786a9932b030ca3860ea0a538
URL of page became like bellow

http://92.xx.197.97/campaigns/axy74...7ek7f130/13ab53c24b1786a9932b030ca3860ea0a538


Thanks
 
Last edited:
Hello @Osjtya
thanks for help and yes it worked. my system URL was IPS so i regenerate then and it worked.

one thing what i am looking for is
when tracking URL click it show my website original URL after created.
like user click on tracking domain
tracking.example.com which is CNAME to original tracking domain.
tracking.example.com CNAME tracking.mydomain.com
after it shows tracking.mydomain.com in URL bar

but i have customer who want to show his domain in bar not mine, can we do that in MW ?
so tracking.example.com will stay not change.
thanks
 
Hello @Osjtya
thanks for help and yes it worked. my system URL was IPS so i regenerate then and it worked.

one thing what i am looking for is
when tracking URL click it show my website original URL after created.
like user click on tracking domain
tracking.example.com which is CNAME to original tracking domain.
tracking.example.com CNAME tracking.mydomain.com
after it shows tracking.mydomain.com in URL bar

but i have customer who want to show his domain in bar not mine, can we do that in MW ?
so tracking.example.com will stay not change.
thanks
Just create a tracking domain with his domain name.
 
@frm.mwz thx for reply. yes i do create tracking domain with my client domain and its working fine.
but issue is when user click on link like
http://tracking.domain1.com/campaigns/axy742/track-url/ab9/13ab53c
system convert into like bellow
http://example.com/lists/axy742/unsubscribe/13ab53c
where example.com is my domain.
and i want to keep tracking.domain1.com
That means your masking (parking/alias) is not working (tracking domain over mailer domain), but the whole thing works as forward (tracking domain forwards to mailer domain).
 
Back
Top