Announcement

#1 2016-08-11 14:50:40

AriMartti
Member
Vantaa, Finland
2016-08-11
2

Wrong url in registration email and all other emails

Hi,

My gallery sends registration emails to users and notification to me, the owner and administrator of gallery. In emails there is a link to the gallery which has wrong url. The url is like https://arimartti.kapsi.fi:80/piwigo/ and that string ":80" is bad thing in url. How I can change the url? I can't find any configuration point to change that, no in database or in php files.

There is almost 15k pictures but these are restricted to my family memebers only.

Piwigo version: 2.8.2
PHP version: 5.6.24-0+deb8u1
MySQL version: 5.5.5-10.0.26-MariaDB-0+deb8u1
Piwigo URL: https://arimartti.kapsi.fi/piwigo/

Offline

 

#2 2016-08-14 21:37:56

AriMartti
Member
Vantaa, Finland
2016-08-11
2

Re: Wrong url in registration email and all other emails

My problem is gone now, the only thing I had to do was adding some lines to local config.inc.php:

Code:

if ($_SERVER['HTTPS'] == 'on') {
    $_SERVER['SERVER_PORT'] = 443; 
}

The reason problem exists is that our reverse proxy (web frontend) set correctly the $_SERVER['REMOTE_ADDR'] and $_SERVER['HTTPS'] values but uses only port 80 to communicate with backend servers.

More information about that: https://github.com/Piwigo/Piwigo/pull/4 … -220932586

Offline

 

Board footer

Powered by FluxBB

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