Control Web Panel
WebPanel => Updates => Topic started by: monkeyking on December 02, 2018, 09:45:40 PM
-
After the update, I have trouble with WordPress mixed content and break css. Magento just keep on redirecting until browser give up. If I run only Apache then everything work. Anything else will not work. Anyone knows how to fixed this?
-
http://forum.centos-webpanel.com/high-performance/wordpress-high-performance-instructions/msg20121/?topicseen#msg20121
-
all of my website behaving wrong, only default page being shown.
-
What u use? Apache ningx varnish or? I had loop problem i solve it setting default WebServer in nginx insted php-fpm. Also rebuild apache, and php to latest version. And remove all configs ( if u have) in domain conf.
-
Very educative. but can this streaming Website 123Movie (http://<a href="https://www.123moviesvideo.com">123Movies</a>)s or MovieBox Update (https://www.movieboxstreamingtv.com) use it?
-
What u use? Apache ningx varnish or? I had loop problem i solve it setting default WebServer in nginx insted php-fpm. Also rebuild apache, and php to latest version. And remove all configs ( if u have) in domain conf.
I'm using NginX+Varnish+Apache and now + PHP-FPM too. I found the problem. It's when you're using https you get some resources requested from insecure http. That causes the mixed content. I found the solution to it by adding this to my htaccess to force https.
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IFModule>
That works for me. But I wish someone can come up with a solution for server end so we don't have to do this every times. I think it can be done through vhost but I don't know how.
-
If you're using WordPress then you have another option. That is to add this to your wp-config.php.
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}