Gallery2 redirects URL to internal IP addres
|
txoof
![]()
Joined: 2006-01-15
Posts: 45 |
Posted: Thu, 2009-10-29 02:42
|
|
When I visit my gallery via the url http://txoof.ath.cx:81/gallery2, the gallery attempts to rewrite the URL as http://192.168.1.9/foo. This obviously is not a problem from my INTRAnet, but is definitely a problem for anyone visiting from the INTERnet. I've tried adding http://txoof.ath.cx:81 to the Setup tab of URL Rewrite module, but this doesn't seem to fix things. I have to admit, I have no idea where to begin with this. Any suggestions would be greatly appreciated! --- Txoof |
|
| Login or register to post comments |


Posts: 10961
Edit one of the last lines in config.php and change the setting for baseUri
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 45
Perfect. I just commented out that line and it fixed everything! Thanks for the advice.
---
I see a 'Strong ba' in there, but it's getting eaten by
some Linux or something.
-Strong Bad
Txoof
Posts: 1
I have somewhat of a similar problem. I am using Gallery2 on an intranet. The url is http://192.168.2.205 which works fine but when I click on a link in Gallery2 it redirects to http://localhost/gallery2/main.php. I get a "Not found on this server" error of course. I can copy and paste the links to navigate but what a headache. Can anyone point me where to fix this?
here is system info:
Gallery URL = http://localhost/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6-1+lenny3 apache2handler
Webserver = Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch
Database = mysqli 5.0.51a-24+lenny2+spu1, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating system = Linux debian 2.6.26-2-686 #1 SMP Sat Oct 17 17:59:23 UTC 2009 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091010 Iceweasel/3.0.6 (Debian-3.0.6-3)
Rows in GalleryAccessMap table = 9
Rows in GalleryAccessSubscriberMap table = 6213
Rows in GalleryUser table = 2
Rows in GalleryItem table = 6213
Rows in GalleryAlbumItem table = 49
Rows in GalleryCacheMap table = 0
Posts: 10961
It's not like there are 1000s of posts and 100s of pages in this thread. The fix is posted in 2nd post.
http://gallery.menalto.com/node/92069#comment-325636
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here