Announcement

#1 2019-06-16 20:48:03

kos
Member
2019-06-12
10

Piwigo behind HAProxy

Hello/Hi/Greetings,

I have Piwigo installed on my Thecus NAS where it is running locally on port 13333.
To make things a bit easier to access, I have also installed HAProxy on my NAS with a SSL connection and a DNS name configured like https://my.piwigo.com
Now when I log on to Piwigo, port 13333 is added to the address (https://my.piwigo.com:13333) resulting in a message that the site is not available, removing the port number will get me to my Piwigo.
I found here on the forum members with a similar issue, but then with port number 80 where 443 is expected. I went through the solutions for those issues, but I don't see how to translate it to my problem...
In my case no port number is needed after logging on. Is there a way that I can tell Piwigo to use the URL without port number?

Tried github #722 and #982, but neither one of them solved the problem.
As I'm no Linux expert, I'm a bit reluctant in experimenting too much in my otherwise nicely working Piwigo installation.

Piwigo 2.9.5
OS: Linux
PHP: 5.6.22
MySQL: 5.5.5-10.2.12-MariaDB
Image Library: ImageMagick 6.8.8-7

Offline

 

#2 2019-06-20 01:25:36

erAck
Only trying to help
2015-09-06
2143

Re: Piwigo behind HAProxy

See [Github] Piwigo issue #681 (and as the overly clever forum software removes the fragment part from a github issue URL the full URL including the comment fragment is

Code:

https://github.com/Piwigo/Piwigo/issues/681#issuecomment-303347626

In your case it probably will work to remove the portion of the code in include/functions_url.inc.php as indicated in the temporary workaround diff in that comment.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2019-06-20 22:53:38

kos
Member
2019-06-12
10

Re: Piwigo behind HAProxy

erAck wrote:

In your case it probably will work to remove the portion of the code in include/functions_url.inc.php as indicated in the temporary workaround diff in that comment.

Awesome! You are the best! It works!!!
Thank you!
You can't imagine how happy I now am because of this! :-D

Last edited by kos (2019-06-20 22:54:48)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact