I'm using elastic beanstalk single instance. So there is apache configured and tomcat is behind listening on http port 8080. Apache is configured on using ssl https 443.
The problem is that tomcat redirects using http. But I can't set up apache to change http to https. So as a consequence the mixed content error happens preventing application to work.
I tried so far the following settings: In virtual host *:80 I put the
<IFModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/%$1 [R, L]
</IFModule>
Also I tried
RedirectMatch ^(/.*)$ https://thepennantrace.com/$1
Both didn't work.
I wonder what would be the correct way of setting it? (app is running through facebook, if directly accessed it won't show any errors)