cookbook 'redirect', '= 1.0.0'
redirect
(18) Versions
1.0.0
-
Follow0
Create Nginx host to redirect to another website
cookbook 'redirect', '= 1.0.0', :supermarket
knife supermarket install redirect
knife supermarket download redirect
redirect-cookbook
Create Nginx host to redirect to another website
Usage
Resource
redirect_host 'www.domain.tld' do target 'domain.tld' secure true # Redirect to HTTPS permanent false # Either 301 or 302 HTTP code end
Recipe
Add recipe[redirect::default]
to your run list and specify redirect hosts in node attributes:
{ "redirect": { "hosts": [ { "fqdn": "www.domain.tld", "target": "domain.tld", "secure": true, "permanent": false } ] } }
License
MIT @ Alexander Pyatkin
Dependent cookbooks
chef_nginx ~> 6.1.1 |
tls ~> 3.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
License Metric
1.0.0 passed this metric
1.0.0 passed this metric