Welcome! Log In Create A New Profile

Advanced

Default domain with randomly redirect to multiple domains.

Posted by deiv061 
Default domain with randomly redirect to multiple domains.
May 29, 2019 03:18AM
Hello, Guys!

I'm a newbie with Nginx. I'm thinking something is it possible to redirect to random domains. For example, I have several domains
mydomain.com
mydomain1.com
mydomain2.com
mydomain3.com
All domains are pointed to the same site which is hosted on one server. Is it possible when I request my default domain mydomain.com to choose randomly and redirect to one domain from the pool? I tried with rewrite rules, upstream balancing module also maps config with default domain and others. But no success.

Thanks! :)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 109
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready