I have around 50 identical domains names with different tld like: domain.net, domain.org, domain.de, domain.biz, domain.ca... now I would like to forward all incoming requests to this domain with and without www on nginx to: http://domain.com how I can do this without need to list every domain?
Something like: forward all request to .domain. or domain.* to: http://domain.com permanent
Use nginx server_name directive with wildcards. Example:
I never checked using a catch all tld but its worth a try. Don't have access to any nginx install right now, so if you can try the following do let me know too if it worked or not.