Quirky behavior on intranet when changing homepage url in config Quirky behavior on intranet when changing homepage url in config
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Quirky behavior on intranet when changing homepage url in config

Started by artistsinhawaii, August 24, 2005, 03:05:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

artistsinhawaii

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
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

kegobeer

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?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

artistsinhawaii

Quote from: kegobeer on August 24, 2005, 03:56:03 AM
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


Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller


artistsinhawaii

Quote from: GauGau on August 25, 2005, 09:58:11 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
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.