Jump to content

Edit History

RickieSee

RickieSee


Revision

On 4/15/2020 at 7:28 PM, Prestahost.cz said:

Some variables were not passed to Apache from Nginx. There are several solutions, I have opted for prepending the code below using php.ini:

 

if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){
    $_SERVER['HTTPS']='on';
    $_SERVER['SERVERjDDR'] = $_SERVER['HTTP_X_REAL_IP'];
}
 

Hey man, I still have the problem If you can walk me through this please I will send you 40 EUR, This issue is driving me insane.

RickieSee

RickieSee


Revision

On 4/15/2020 at 7:28 PM, Prestahost.cz said:

Some variables were not passed to Apache from Nginx. There are several solutions, I have opted for prepending the code below using php.ini:

 

if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){
    $_SERVER['HTTPS']='on';
    $_SERVER['SERVERjDDR'] = $_SERVER['HTTP_X_REAL_IP'];
}
 

Hey man, I still have the problem If you can walk me through this please, This issue is driving me insane.

UPDATE i think i've solved this thanks to GuimDotcom's solution. THANK YOU

RickieSee

RickieSee


Revision

On 4/15/2020 at 7:28 PM, Prestahost.cz said:

Some variables were not passed to Apache from Nginx. There are several solutions, I have opted for prepending the code below using php.ini:

 

if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){
    $_SERVER['HTTPS']='on';
    $_SERVER['SERVER_PORT'] = 443;
}
if(isset($_SERVER['HTTP_X_REAL_IP'])) {
    $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_REAL_IP'];
}
 

Hey man, I still have the problem. If you can walk me through this please, I'll send you 40EUR. This issue is driving me insane.

RickieSee

RickieSee

On 4/15/2020 at 7:28 PM, Prestahost.cz said:

Some variables were not passed to Apache from Nginx. There are several solutions, I have opted for prepending the code below using php.ini:

 

if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){
    $_SERVER['HTTPS']='on';
    $_SERVER['SERVER_PORT'] = 443;
}
if(isset($_SERVER['HTTP_X_REAL_IP'])) {
    $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_REAL_IP'];
}
 

Hey man, I still have the problem. If you can walk me through this please, I'll send you 40EUR. This issue is driving me insane.

×
×
  • Create New...