dokku-redirects-plugin icon indicating copy to clipboard operation
dokku-redirects-plugin copied to clipboard

DEPRECATED: Use https://github.com/dokku/dokku-redirect instead

dokku-redirects-plugin

Build Status

Dokku plugin to create nginx vhost which redirects domains to primary domain.

DEPRECATED: Use https://github.com/dokku/dokku-redirect instead

Installation

cd /var/lib/dokku/plugins
git clone https://github.com/mordred/dokku-redirects-plugin.git /var/lib/dokku/plugins/redirects-plugin
dokku plugins-install

Commands

$ dokku help
    ...
    redirects <app>                                                   display redirects for an app
    redirects:set <app> DOMAIN1=DOMAIN2 [DOMAIN3=DOMAIN4 ...]         set one or more domains redirects
    ...

Simple usage

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

Extended usage

$ 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