简体   繁体   中英

How to add a configuration file to a AWS application load balancer?

I've been looking into how to route HTTP traffic to https for my Elastic Beanstalk environment. AWS has documentation on this that recommends using configuration files. I'm just not sure where I should paste this configuration? I'm quite now to AWS, so I'm love some newbie friendly advice.

I'm using an Application Load Balancer.

Thanks

The files in the docs cited, alb-http-to-https-redirection-full.config and alb-http-to-https-redirection.config are to be placed (after your modifications if needed; HTTPs requires SSL certificate) in your .ebextensions folder.

So in your zip package would have files .ebextensions/alb-http-to-https-redirection-full.config and/or alb-http-to-https-redirection.config along side your application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM