0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Elastic Beanstalk 利用時に httpでのアクセスを https にリダイレクトする方法

Last updated at Posted at 2019-09-29

Elastic Beanstalk側でコンソール使用して設定できる項目がなさそうだったので、nginx側で下記のような設定を行った。

server {
  listen 8080;
                      
  location / {             
    return 301 https://$host$request_uri;          
  }
}  

Elastic Beanstalkのコンソール側では、下記のように80番ポートがnginxの8080番ポートに行くように設定してやれば良い模様。
aws-console-elastic-beanstalk.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?