Dokku plugin to create nginx vhost which redirects domains to primary domain.
DEPRECATED: Use https://github.com/dokku/dokku-redirect instead
cd /var/lib/dokku/plugins
git clone https://github.com/mordred/dokku-redirects-plugin.git /var/lib/dokku/plugins/redirects-plugin
dokku plugins-install$ dokku help
...
redirects <app> display redirects for an app
redirects:set <app> DOMAIN1=DOMAIN2 [DOMAIN3=DOMAIN4 ...] set one or more domains redirects
...Your need to have app running with the same name!
Create vhost with multiple where one domain redirects all request to another
$ dokku redirects:set myawesomeapp.com myawesomeapp.com=www.myawesomeapp.com # Server side
$ ssh dokku@server redirects:set myawesomeapp.com myawesomeapp.com=www.myawesomeapp.com # Client side$ dokku redirects:set APPNAME DOMAIN-TO-REDIRECT=DESTINATION-DOMAIN # Server side
$ ssh dokku@server redirects:set APPNAME DOMAIN-TO-REDIRECT=DESTINATION-DOMAIN # Client side
```
## License
MIT