Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2012-05-30 15:17:44

sputnik321
Member
Registered: 2012-05-27
Posts: 5

[resolved] Public address in "Forgotten Password" email instead of private IP

My server is hosted on a private subnet and Piwigo can be accessed at http://192.168.1.x/piwigo

However, I made it public so it can also be reached from the Internet using an address like http://public.com/piwigo

My problem is, when I click on the "Reset password" link, the email contains a link to http://192.168.1.x/piwigo and my external users are unable to access it.

I looked at the forums and in the config files, but no luck.

How do I do to make http://public.com/piwigo appear in the "Reset password" email instead?

TIA

Piwigo 2.3.4 on Ubuntu 12.04

Offline

#2 2012-05-30 19:21:11

Billr
Piwigo Team, forum moderator
Registered: 2011-06-22
Posts: 144

Re: [resolved] Public address in "Forgotten Password" email instead of private IP

See if this helps you:
http://piwigo.org/releases/2.3.0#gallery_url

You need to use a domain name registered to you - you can't just put in any name and hope it works or it will break the gallery

Bill

Offline

#3 2012-05-30 21:40:59

sputnik321
Member
Registered: 2012-05-27
Posts: 5

Re: [resolved] Public address in "Forgotten Password" email instead of private IP

Thanks Billr,

But either I did something funny or this setting doesn't do what I want.

I didn't use the GUI extension to edit the file, so I located the setting in http_server/piwigo/include/config_default.inc.php, changed it to my domain name that I registered with no-ip.com and restarted Apache.

To test the new setting, I clicked on the "Forgot password" link and the email contained a link to this location:
http://192.168.1.x/piwigo/publiccom

Not quite what I wanted...

I wanted the link to bring me to http://public.com/piwigo

Did I do something wrong?

Offline

#4 2012-05-30 22:10:15

sputnik321
Member
Registered: 2012-05-27
Posts: 5

Re: [resolved] Public address in "Forgotten Password" email instead of private IP

Hi Billr,

I continued to play with this and it now works.

The key was the quotation marks; I had to write the whole path to my piwigo site like this: "www.public.com/piwigo"

It now works!

Thanks!

Offline

#5 2012-05-31 05:54:29

Billr
Piwigo Team, forum moderator
Registered: 2011-06-22
Posts: 144

Re: [resolved] Public address in "Forgotten Password" email instead of private IP

Great.  Glad you figured it out. 

Billr

Offline

#6 2012-05-31 14:10:09

flop25
Piwigo Team
Registered: 1970-01-01
Posts: 3391
Website

Re: [resolved] Public address in "Forgotten Password" email instead of private IP

sputnik321 wrote:

so I located the setting in http_server/piwigo/include/config_default.inc.php,

never ever change the default files !! Use the plugin LocalFiles Editor


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013