PDA

View Full Version : http://www's


Hans
14th March 2006, 22:29
When i login in ISPConfig at http://www.mydomain.com:81/login.php everything looks normal.
When i click on > Management > Settings, i have to login again.
At this new login-screen the address in my browsers shows:
http://wwwww.mydomain.com:81/login.php?err=

Yes, 5x w! I do not understand!

After login to verify the settings in > Management > Settings, the wwwww, are still there.

So, i tried the following:
In my browser i went to the URL: http://www.mydomain.com, which works fine. But ... Also http://wwwww.mydomain.com works and also http://wwwwwww.mydomain.com !

It does not matter how many w's i put there, i can reach my domain.

This looks very strange to me and i have to say that this appears since i have ISPConfig 2.2.0.

What could be wrong?

Please let me know!

Hans

edge
14th March 2006, 22:55
Looks like a DNS setting to me.
Does http://anyting.mydomain.com also work?

If so, you have in the cname an Alias '@' pointing to your IP (I think) in the DNS setup.

Hans
14th March 2006, 23:02
Looks like a DNS setting to me.
Does http://anyting.mydomain.com also work?

If so, you have in the cname an Alias '@' pointing to your IP (I think) in the DNS setup.

Yes, http://mydomain.com works too.
And you are right about the cname pointing to my IP.
But is this the reason? I did not notice it before...

edge
14th March 2006, 23:33
I'm not talking about http://mydomain.com but http://what_ever_you_put_here.mydomainname.com :-)

I'm also not 100% sure if the cname is the problem!
You maybe better wait for some of the experts to verify this!

falko
15th March 2006, 01:18
What does the URL part in /home/admispconfig/ispconfig/lib/config.inc.php look like?

Hans
15th March 2006, 22:05
What does the URL part in /home/admispconfig/ispconfig/lib/config.inc.php look like?

The URL settings within this file look like this:

/**********************************************
* System Settings
**********************************************/

$go_info["server"]["dir_trenner"] = "/";
$go_info["server"]["server_root"] = "/home/admispconfig/ispconfig";
if(isset($_SERVER['SERVER_NAME']) && isset($_SERVER['SERVER_PORT'])){
$go_info["server"]["server_url"] = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'];
} else {
$go_info["server"]["server_url"] = "http://www.mydomain.com:81";

falko
15th March 2006, 23:13
Replace

if(isset($_SERVER['SERVER_NAME']) && isset($_SERVER['SERVER_PORT'])){
$go_info["server"]["server_url"] = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'];
} else {
$go_info["server"]["server_url"] = "http://www.mydomain.com:81";
}

with just

$go_info["server"]["server_url"] = "http://www.mydomain.com:81";

Hans
15th March 2006, 23:36
Replace

if(isset($_SERVER['SERVER_NAME']) && isset($_SERVER['SERVER_PORT'])){
$go_info["server"]["server_url"] = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'];
} else {
$go_info["server"]["server_url"] = "http://www.mydomain.com:81";
}

with just

$go_info["server"]["server_url"] = "http://www.mydomain.com:81";


This works Falko! Problem solved!