Announcement

  •  » Miscellaneous
  •  » Running Piwigo with proxy server non standard part

#1 2019-05-29 15:50:21

faspina
Member
2019-05-29
1

Running Piwigo with proxy server non standard part

Hello/Hi/Greetings,

I am running Piwigo behind a proxy server.   on a non stanardare ssl port 6245.  When I log in am directed to a URL that does not container the :6245 port identify. I am already using 443 for another web service. how can I fix this

Offline

 

#2 2019-05-31 14:39:27

k5
Member
place
2017-11-05
13

Re: Running Piwigo with proxy server non standard part

Hello/Hi/Greetings,
try this

include/functions_url.inc.php  on line 72 to 80

     if ( (!$is_https && $_SERVER['SERVER_PORT'] != 80)
            ||($is_https && $_SERVER['SERVER_PORT'] != 443))
      {
        $url_port = ':'.$_SERVER['SERVER_PORT'];
        if (strrchr($url, ':') != $url_port)
        {
          $url .= $url_port;
        }
      }

from that

Code:

/*
      if ( (!$is_https && $_SERVER['SERVER_PORT'] != 80)
            ||($is_https && $_SERVER['SERVER_PORT'] != 443))
      {
        $url_port = ':'.$_SERVER['SERVER_PORT'];
        if (strrchr($url, ':') != $url_port)
        {
          $url .= $url_port;
        }
      }
*/

thx
k5

Offline

 
  •  » Miscellaneous
  •  » Running Piwigo with proxy server non standard part

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact