I have wordpress site which was working correctly on apache site before.
https://example.com -> (port 443) -> apache server
However now I installed nginx for reverse proxy.
https://example.com -> (port 443) -> nginx ->(port 8080) -> apache
So now, when accesing wordpress site, there comes the error like this below
The page at '<URL>' was loaded over HTTPS, but requested an insecure script '<URL>'. This request has been blocked; the content must be served over HTTPS
I guess it is because of some files loaded from wordpress does not accept HTTP
How can I solve this? is there any relevant setting in wordpress ?
I can understand the server setting , but wordpress is blackbox for me.
2
Answers
Check your page source and you must be having some external javascript files served over http like
This needs to be served over https, like …
If you check using chromes developer tool you will find out easily which of your javascript files are loaded over example.com . This needs to be fixed in code. You should include any external javascript over https protocol to get rid of that warning.
Hope that helps.
You can take HTTP/S back with a few simple SQLs:
But be careful, not all scripts support the HTTP protocol, as already mentioned.