# Having Hatchbox Redirect All http Sites it Manages to https

DevFeed: [Having Hatchbox Redirect All http Sites it Manages to https](<https://devfeed.tech/articles/having-hatchbox-redirect-all-http-sites-it-manages-to-https-28176.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/hatchbox/2020/03/28/having-hatchbox-redirect-all-http-sites-it-manages-to-https.html>)

Author: Fuzzygroup

Published: 2020-03-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [nginx](<https://devfeed.tech/topics/nginx.md>), [SSL](<https://devfeed.tech/topics/ssl.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [servers](<https://devfeed.tech/topics/servers.md>)

Tags: [can](<https://devfeed.tech/tags/can.md>), [code](<https://devfeed.tech/tags/code.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [hatchbox](<https://devfeed.tech/tags/hatchbox.md>), [http](<https://devfeed.tech/tags/http.md>), [https](<https://devfeed.tech/tags/https.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [request](<https://devfeed.tech/tags/request.md>), [server](<https://devfeed.tech/tags/server.md>), [ssl](<https://devfeed.tech/tags/ssl.md>)

## AI overview

A guide for configuring Hatchbox and nginx in cluster mode so HTTP requests are redirected to HTTPS at the load balancer. It provides the nginx directive and the Hatchbox interface steps needed before deploying the change.

## Source excerpt

When you are using hatchbox and SSL in cluster mode you end up with: a load balanced cluster that uses nginx as the load balancer and nginx on each web node This makes it hard to understand where the http to https redirect goes. The answer is that you need to but this on the load balancer and here's a code snippet: server_name _; return 301 https://$host$request_uri; This gets set as follows: Go into Hatchbox.io Go into your app. Go to Advanced. Select Nginx Configuration from the drop down menu Select the Load Balancer tab. Add these changes below the listen [::]:80; directive and then do a deploy. For reference, you can see linuxize.