evertramos / docker-wordpress

Wordpress Docker container using SSL Certificates with LetsEncrypt
https://evertramos.github.io/docker-wordpress/
MIT License
484 stars 156 forks source link

The wordpress file are not in https #17

Closed LucaMiozzo closed 6 years ago

LucaMiozzo commented 6 years ago

When I'm trying to install wordpress I have many console errors:

Mixed Content: The page at 'https://www.domain.com/wp-admin/install.php?step=2' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.domain.com/wp-includes/css/buttons.min.css?ver=4.9.6'. This request has been blocked; the content must be served over HTTPS. install.php?step=2:9

Mixed Content: The page at 'https://www.domain.com/wp-admin/install.php?step=2' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.domain.com/wp-admin/css/install.min.css?ver=4.9.6'. This request has been blocked; the content must be served over HTTPS. install.php?step=2:10

Mixed Content: The page at 'https://www.domain.com/wp-admin/install.php?step=2' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.domain.com/wp-includes/css/dashicons.min.css?ver=4.9.6'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure script ''. This request has been blocked; the content must be served over HTTPS. install.php?step=2:115 Uncaught ReferenceError: jQuery is not defined at install.php?step=2:115 (anonymous) @ install.php?step=2:115

Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ''. This request has been blocked; the content must be served over HTTPS.

evertramos commented 6 years ago

You are using an insecure plugin or theme, In fact, this has nothing to do with the container settings.

Please add a plugin to make all ssl, there are a few of them around, such as:

https://wordpress.org/plugins/really-simple-ssl/

or

https://wordpress.org/plugins/ssl-insecure-content-fixer/

LucaMiozzo commented 6 years ago

Hi, thankU for your quick reply. But the wordpress does not have any plugin, is new and wothout nothing.

evertramos commented 6 years ago

@LucaMiozzo ritght... even though try out this plugins and you should be fine. Some how you are trying to load some non ssl links. Let me know if it worked.

remach commented 5 years ago

Try to add if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on'; at the beginig wp-config.php