Album images found only when URL is IP address

davidqxo

Joined: 2002-09-01
Posts: 3
Posted: Sun, 2002-09-01 18:29

Answer found!

My previous host was by name reference, so I set DNS to refer to it in a frame. With my new host now I have an IP address, and can have DNS map to it directly.

Nevertheless, I'm unsure why the Gallery config would recommend and give for examples full URL instead of relative URL. Relative references work fine in either case.

Original post
========
On moving my site to a new web host I find the album image links broken unless I specify the album URL with the actual IP address rather than the symbolic name. Curiously, if I get properties of an image link (with the previous, broken symbolic URL) and paste that into the IE browser window, it pulls up the image fine.

Here's the salient part of the config.php file:
$gallery->app->albumDir = "/home/qxocom/public_html/gallery/albums";
$gallery->app->tmpDir = "/home/qxocom/tmp";
$gallery->app->photoAlbumURL = "http://www.qxo.com/gallery";
$gallery->app->albumDirURL = "http://209.151.82.39/gallery/albums";

That works, but if you replace the IP address by "www.qxo.com" then all image links are broken??

 
davidqxo

Joined: 2002-09-01
Posts: 3
Posted: Sun, 2002-09-01 19:18

I've also discovered that unless:
$gallery->app->photoAlbumURL = "http://www.qxo.com/gallery";
is changed to:
$gallery->app->photoAlbumURL = "http://209.151.82.39/gallery";
The login link breaks.

This strange behavior feels as if the browser can resolve a symbolic URL at the address window, but not from within a page.

By the way, relative URLs would work fine.

 
davidqxo

Joined: 2002-09-01
Posts: 3
Posted: Sun, 2002-09-01 20:36

Answer found!

My previous host was by name reference, so I set DNS to refer to it in a frame. With my new host now I have an IP address, and can have DNS map to it directly.

Nevertheless, I'm unsure why the Gallery config would recommend and give for examples full URL instead of relative URL.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-03 04:52

Gallery 1.x requires full URLs because of the way that we use Javascript. This requirement will go way in G2.