Web server location

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Seb
Posts: 7
Joined: 30 Mar 2005, 15:20

Web server location

Post 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
Last edited by Seb on 20 Apr 2005, 11:26, edited 1 time in total.
Seb
Posts: 7
Joined: 30 Mar 2005, 15:20

Post 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
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post 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
hinke
Posts: 23
Joined: 15 Feb 2005, 08:35
Location: Lund, Sweden
Contact:

Post 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
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post 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.
Seb
Posts: 7
Joined: 30 Mar 2005, 15:20

Post 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
Seb
Posts: 7
Joined: 30 Mar 2005, 15:20

Post 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
Post Reply