Page 1 of 1

Web server location

Posted: 20 Apr 2005, 08:19
by Seb
In the confirmation emails that are sent out to new users, the location of the web server is at "localhost", i.e. http://localhost:8080/mantis/verify.php ... 3ghfjh3454

I thought to solve this I had to change the host name ( $g_hostname ) in the config file from "localhost" to the IP, however, doing that creates a #400 error -

Database connection failed. Error received from database was #1130: Host 'pc-name' is not allowed to connect to this MySQL server.

I'm stuck. Do I amend a different file in order to have the IP in the link sent out in confirmation emails?

Thanks,
Seb

Posted: 20 Apr 2005, 11:24
by Seb
Okay, so you clearly don't change the $g_hostname variable, as it is a database variable.

My previous problem still stands however. Getting the emails to display the IP and not 'localhost'.

Thanks,
Seb

Posted: 20 Apr 2005, 11:32
by vboctor
You probably need to change the setting of the $g_path configuration variable. Typically this is automatically set in config_defaults_inc.php. However, if it is not set correctly, then you need to override it in config_inc.php.

The $g_path should be set to something like 'http://www.example.com/mantis/'.

Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect

Posted: 20 Apr 2005, 11:43
by hinke
Hi,

I have not done anything special with Mantis for it to display for example "henrik" (the name of the server where Mantis is running) in the emails.

My database host is 'localhost'.

Maybe it is a webserver related setting?

-Henrik

Posted: 20 Apr 2005, 13:02
by thraxisp
It is. If you are running apache, it is set by the "ServerName" directive. If missing, it defaults to the hostname or IP.

Posted: 20 Apr 2005, 14:30
by Seb
I see, however, I'm running IIS 5.1. Is there a setting in here I have to change? I've taken a look but can't see where it might be.

Thanks agian,
Seb

Posted: 21 Apr 2005, 10:55
by Seb
I've now also tested with Apache, and amended the variable ServerName to equal to my IP, however, the emails still continue to say "localhost".

I'm truly stumped,
Seb