Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The wordpress file are not in https #17

Closed
LucaMiozzo opened this issue Jun 2, 2018 · 4 comments
Closed

The wordpress file are not in https #17

LucaMiozzo opened this issue Jun 2, 2018 · 4 comments

Comments

@LucaMiozzo
Copy link

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
Copy link
Owner

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
Copy link
Author

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

@evertramos
Copy link
Owner

@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
Copy link

remach commented Jul 11, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants