Home Linux : Nginx : Multiple domain forwarding, bulk domain forwarding from a file
Reply: 0

Linux : Nginx : Multiple domain forwarding, bulk domain forwarding from a file

user452
1#
user452 Published in May 25, 2018, 11:12 am

I have a file with 2 columns of domain names. For example.

abc.com xyz.com; def.com tgh.net;

I want the domain abc.com forwarded/redirected to xyz.com and the domain def.com forwarded/redirected to tgh.net

I have tried using the map module in nginx, however, it only forwards URLs.

Would anyone have done something like this? From a file or a database?

Quick help would be greatly appreciated.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.308088 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO