DEPRECATED: Use https://github.com/dokku/dokku-redirect instead
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
Makefile
README.md
commands
install
post-deploy

README.md

dokku-redirects-plugin

Build Status Bitdeli Badge

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

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