forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: artistsinhawaii on August 24, 2005, 03:05:23 am

Title: Quirky behavior on intranet when changing homepage url in config
Post by: artistsinhawaii on August 24, 2005, 03:05:23 am
I don't know if this is a bug or just the way things have to be but when I change the homepage URL in Config, I am no longer able to access my coppermine website on my localserver.

My wife and I work on the site together. I work off of the server. She works off of a client computer connected via intranet.  When I leave the homepage URL as index.php, she can log on to mydomain/index.php  without any problems.

When I change it to anything else. She gets a DNS error.   Here's what happens:

Leaving it at index.php, she logs on to mydomainname/index.php.  No redirection takes place so there is no problem here.

Changing it to anothername.php, she logs onto mydomainname/index.php or mydomainname/anothername.php  and she gets the DNS error because the Address changes to "localhost/anothername.php" rather than 'mydomainname/anothername.php.'

Trying to log on directly to 'mydomainname/anothername.php' gives her the same error as the webaddress automatically changes to "localhost/anothername.php"


That's it.  Didn't know if this was a bug or something that is already in the know by everyone but me.

Thanks,

Dennis
Title: Re: Quirky behavior on intranet when changing homepage url in config
Post by: kegobeer on August 24, 2005, 03:56:03 am
What a file is called should have nothing to do with how your server reacts.  I don't know how you have your local server configured, but it sounds like something is amiss.  If you make an index.php file with a redirect to your renamed index.php file (which you would have to do regardless so when people try to access index.php it will go where you want it to go) does everything work?
Title: Re: Quirky behavior on intranet when changing homepage url in config
Post by: artistsinhawaii on August 24, 2005, 12:07:59 pm
If you make an index.php file with a redirect to your renamed index.php file (which you would have to do regardless so when people try to access index.php it will go where you want it to go) does everything work?

Redirects from cpg's index.php to another file on entering the website do not work from remote computers connected to my server. If I hardcode a redirect in an index.html file and direct it using:
myIPaddress/sitefolder/index.php  it works.

The problem obviously is that cpg's index.php redirects to "localhost"/sitefolder/whatever.php
And "localhost" to my remote computer is its own ip.

I think.

Thanks for the reply.

Dennis


Title: Re: Quirky behavior on intranet when changing homepage url in config
Post by: Joachim Müller on August 25, 2005, 09:58:11 am
Try "127.0.0.1" instead of "localhost"
Title: Re: Quirky behavior on intranet when changing homepage url in config
Post by: artistsinhawaii on August 25, 2005, 10:38:58 am
Try "127.0.0.1" instead of "localhost"


Ah... that should work. . Or, even my router assigned IP come to think of it.

Thanks


Dennis