Welcome! Log In Create A New Profile

Advanced

Re: What cause the error for this http/https wordpress configuration file?

Reinis Rozitis
August 27, 2015 08:28PM
> We dont need to redirect http traffic to https. In addition, I want to
> access it either by http: //example.com, http: //www.example.com, https:
> //example.com, or https: //www.example.com
>
> 3. https: //www.example.com/fold1/readme.php was loaded over HTTPS, but
> requested an insecure script 'http:
//www.example.com/fold1/js/user-profile.min.js?ver=4.3'. This request has
been blocked; the content must be served over HTTPS.
readme.php:1


Since the access log doesn't show any denied requests this seems as a
WordPress configuration issue (though I'm no WP expert) - I imagine you have
configured Wordpress with a global URL (in General settings) like
http://www.example.com but that way when you open the https:// version all
the assets (js/css) in the html source will have the absolute path/url (you
can check the source for src="http://.. ") which by default are being
blocked by browsers (it doesn't even get to nginx) as non-secure content and
the page without any css styles or scripts can look empty/broken.


If you don't want to force the http->https redirect you should either
configure the the WP with relative url or skip the protocol at all (eg use
just //example.com).

A more lengthy article can be read here
https://managewp.com/wordpress-ssl-settings-and-how-to-resolve-mixed-content-warnings


rr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

What cause the error for this http/https wordpress configuration file?

log August 27, 2015 12:19PM

Re: What cause the error for this http/https wordpress configuration file?

Reinis Rozitis August 27, 2015 02:56PM

Re: What cause the error for this http/https wordpress configuration file?

log August 27, 2015 07:56PM

Re: What cause the error for this http/https wordpress configuration file?

Reinis Rozitis August 27, 2015 08:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready