selloween / docker-multi-wordpress

Run multiple WordPress Docker containers with NGINX Proxy, LetsEncrypt and PHP Composer
GNU General Public License v3.0
75 stars 18 forks source link

https error #14

Closed jonnathanjuma closed 3 years ago

jonnathanjuma commented 3 years ago

It works correctly, but with https it gives me an error, look for some things in http, how can I correct that

pzanitti commented 3 years ago

Mixed content (resources loaded using HTTP on an HTTPS website) used to be a warning on Chrome, now it's a stopping error. You can add these two lines at the top of wp-config.php, make sure to rebuild the image (docker-compose up --build -d):

<?php
define('FORCE_SSL_ADMIN', true);
$_SERVER['HTTPS']='on';
leobar37 commented 3 years ago

I would like to know why the wordpress loads but the styles do not load

pzanitti commented 3 years ago

I would like to know why the wordpress loads but the styles do not load

Because of mixed content prevention in modern browsers. Read my above comment on how to make it work.

selloween commented 3 years ago

@pzanitti above answer is correct. closing issue.