Announcement

#1 2012-12-24 16:30:54

Elsa Thomas
Guest

Piwigo + NAT = ?

Hello,

I've been trying for a while now to make piwigo work in a virtual appliance behind a NAT router without success.

The situation: within the nat, i.e. using local adress 192.168.12.123 from a 192.168.12.x adress, there is no issue. I've been able to use, upload, rename etc. All the functions of piwigo work perfectly.

However, once I want to access the server from outside, i.e. from Internet, after configuring the NAT from

<publicIP>:12443 => 192.168.12.123:443

and try to access the website using a web browser and https://<publicIP>:12443 (or https://<publicIP>:12443/piwigo), it automatically redirects me toward https://<publicIP> instead of bringing me to the piwigo website.

I've tried to change the content of include/functions_url.inc.php, function get_absolute_root_url in case it would help but no success (forcing $url = 'https://publicIP:12443').

I've also tried, independantly, to play with apache configuration (so without touching functions_url.inc.php) in order to marke everything run on port 12443 and changing the NAT to
<publicIP>:12443 => 192.168.12.123:12443

but I get the same result.

I've checked in the mysql database of piwigo if there was any variable or reference to "port" but without success.

Is there:
a) any way to make piwigo work behind NAT? (NAT publicIP:publicPort => privateIP:privatePort) and if yes, how?
b) any way to make piwigo work with apache on another port than 80 or 443? (hoping for NAT publicIP:publicPort => privateIP:publicPort) and if yes, how?

my ports 80 and 443, and you have probably already guessed, are already used so if its not possible, it would mean that i cannot use piwigo at all.

The only post I found via google regarding port forwarding is this one: http://piwigo.org/forum/viewtopic.php?id=19353

But it did not help in my case.

 

#2 2012-12-25 19:19:05

Elsa Thomas
Guest

Re: Piwigo + NAT = ?

found the mistake, sorry for bothering you

it was a .htaccess/mod_rewrite redirection

now let's get this piwigo party started \o/

 

Board footer

Powered by FluxBB

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