I'm using Laravel 5.8
Currently I have this site: sample name
https://www.myssldomain.com/ewallet
and
I have this site: sample name
Using Proxy Pass
included in my myssldomain.com
when the users triggers/search for this link : https://www.myssldomain.com/ewallet/login
the browser will load the content of this site http://my-aws-public-ip/login
The proxy pass
works fine but the problem is the styles
and javascript
is not loaded and the browser says Mixed Content
because the my-aws-public-ip
site is loaded as HTTP not HTTPS
Currently
I changed my config/app.php
as
'url' => env('APP_URL', 'https://www.myssldomain.com/ewallet/'),
and
my
.env
file I changed the APP_URL
to this https://www.myssldomain.com/ewallet/
What I tried
Also
I followed this steps but seems not working too.
https://coderwall.com/p/g9qkea/mixed-content-issue-content-must-be-served-as-https-in-laravel
Also I tried to change the following just to solve the problem
APP_ENV=production
APP_DEBUG=false
APP_URL=https://www.myssldomain.com/ewallet/
and add this code at the beginning of web.php
if (App::environment('production')) {URL::forceScheme('https');}
But still not working on my side.Is there anything I need to setup just to make sure this will work?
Expected
Using proxy pass from myssldomain.com