Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Mordred/dokku-redirects-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •