log in to EC2 instance with SSH session (for example):
ssh -i "{key_combination}.pem" ec2-user@{ec2 instance}.{area}.compute.amazonaws.com
copy the contents of the wsgi.conf file in /etc/httpd/conf.d
edit the local wsgi.conf file and add between tags VirtualHost:
RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]
add the file {app_name}.config file in the .ebextensions folder with following content:
container_commands 01_wsgireplace command 'cp wsgi.conf ../wsgi.conf'
deploy application
eb deploy
this will print
in bold
strike through