Welcome! Log In Create A New Profile

Advanced

Please help, NGINX always convert links to HTTPS

Posted by Gulaholic 
Please help, NGINX always convert links to HTTPS
December 06, 2012 02:40AM
Hello,

I have problem with my Nginx (1.2.5) installation which uses PHP-FPM.
Whenever I install something, some links are converted to HTTPS base url and some are HTTP though I'm accessing it using http://mydomain.tld

How can I fix this? The scripts itself (CMS Made Simple and AjaXplorer) works fine on Apache.
I really want to use Nginx as the Webserver.

I have asked this question in their forums but no reply.

Thanks in advance
Gula
Re: Please help, NGINX always convert links to HTTPS
December 27, 2012 09:36AM
Hi,

Can anyone help me?
I'm starting to figure these all out.
I think there are problems with these files: function.cms_stylesheet.php and function.metadata.php. They are probably conflict with Nginx configuration.

Does it has something to do with these:
======
if ($showbase)
{
$base = $config['root_url'];
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off')
{
$base = $config['ssl_url'];
}

$result .= "\n<base href=\"".$base."/\" />\n";
}
======
if( $auto_https ) {
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off') {
$use_https = 1;
}
}
======
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready