Dotclear

Changeset 3939:295778b9a1e9


Ignore:
Timestamp:
11/28/18 23:45:30 (7 years ago)
Author:
gnieark <gnieark@…>
Branch:
Improve-reverse-proxy-options
Children:
3940:bda8226e7272, 3942:010339e89972
Message:

Probleme port derrière reverse Proxy

Bonjour!

Ce patch va avec celui ci  https://bitbucket.org/dotclear/clearbricks/pull-requests/20/port-mal-pris-en-compte-si-reverse-proxy/diff
sur le dépot clearbricks.

En résumé; dans le cas d'un reverse proxy
 https://reverse.fr qui transmet vers une url du type ip/nom:port  http://192.168.100.15:86

Il y a des redirections intempestives qui ne marchent pas car elles incluent le numéro du port. vers  https://reverse.fr:86/auth.php par exemple.

Merci.

Gnieark

Location:
inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/config.php.in

    r3789 r3939  
    7373//define('HTTP_PROXY_PORT','8080'); 
    7474 
     75// Reverse Proxy 
     76//define('DC_REVERSE_PROXY',false); 
     77 
    7578// Show hidden media dirs 
    7679//define('DC_SHOW_HIDDEN_DIRS', false); 
  • inc/prepend.php

    r3920 r3939  
    177177    http::$https_scheme_on_443 = true; 
    178178} 
    179  
     179if (defined('DC_REVERSE_PROXY') && DC_REVERSE_PROXY) { 
     180    http::$reverse_proxy = true; 
     181} 
    180182if (!defined('DC_DBPERSIST')) { 
    181183    define('DC_DBPERSIST', false); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map