Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A plugin for dokku that gives the ability to set simple redirects for an application

License

NotificationsYou must be signed in to change notification settings

dokku/dokku-redirect

Repository files navigation

dokku-redirect is a plugin fordokku that gives the ability to set simple redirects for an application.

This plugin only redirects one domain to another and does not handle complete URLs. If source domain is managed by dokku and is TLS enabled, then nginx configuration for https redirects will be handled automatically.

Installation

# dokku 0.11+$ dokku plugin:install https://github.com/dokku/dokku-redirect.git

Commands

$ dokku help    redirect <app>                           Display the redirects set on app    redirect:set <app> <src> <dest> [<code>] Set a redirect from <src> domain to <dest> domain    redirect:unset <app> <src>               Unset a redirect from <source>

Redirect Codes

CodeNameBehavior
301Moved Permanently(Default) Permanent, preserves method
302FoundTemporary, may change method to GET
303See Other(HTTP/1.1) Temporary, changes method to GET
307Temporary Redirect(HTTP/1.1) Temporary, preserves method

Usage

Check redirects on my-app

$ dokku redirect my-appSOURCE       DESTINATION      CODEma.dokku.me  my-app.dokku.me  301

Set a new redirect on my-app

$ dokku redirect:set my-app ma.dokku.me my-app.dokku.me-----> Setting redirectfor my-app...done

Redirects will include all app-specific nginx include files.

Unset an existing redirect

$ dokku redirect:unset my-app ma.dokku.me-----> Unsetting redirectfor my-app...done

License

This plugin is released under the MIT license. See the fileLICENSE.


[8]ページ先頭

©2009-2025 Movatter.jp