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 not working well #11

Closed eladzazon closed 5 years ago

eladzazon commented 5 years ago

hi there, thanks for the guide

i have installed on https://zazon.duckdns.org

and it does not load styles.css because its http link in https website

what is the solution?

eladzazon commented 5 years ago

ok i found a solution https://wordpress.stackexchange.com/questions/250240/setting-serverhttps-on-prevents-access-to-wp-admin

Add this to wp-config.php.

/ SSL Settings / define('FORCE_SSL_ADMIN', true);

/ Turn HTTPS 'on' if HTTP_X_FORWARDED_PROTO matches 'https' / if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) { $_SERVER['HTTPS'] = 'on'; }