Help Desk Software & Beyond
May 23, 2012, 05:50:14 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: hostname in url to ticket is not consistent  (Read 1482 times)
wvanhorn
Newbie
*

Karma: 0
Posts: 9


View Profile
« on: January 23, 2007, 11:06:26 AM »

Hi,
When a user generates a ticket, and the notification email is distributed the hostname is not consistent...it could be one of the three following examples:

Ip address: http://10.0.0.0/
FQDNS: http://server.aol.com
hostname: http://server

The ip address or FQDNS are able to resolve on all workstations, but when just the hostname is given, it causes problems for some.

I have noticed that when I log out of the setup program the variable "httphost=" changes in the ttxcfg.cgi file.  What keeps writing to the ttxcfg.cgi file?

Thanks in advance,
Bill
Logged
Alex
Administrator
Hero Member
*****

Karma: 22
Posts: 605



View Profile WWW
« Reply #1 on: January 23, 2007, 11:17:39 AM »

The Trouble Ticket Express needs to know URL of the script in order to generate proper links in email. This info is not available when processing incoming email because the script is being executed by mail daemon or cron process rather than a web server. This is why Trouble Ticket Express stores the URL in config file. The ttx.cgi maintains this info. I would suggest never accessing the ttx.cgi using your intranet URLs. That is always use http://www.example.com, rather than http://example or http://10.0.0.1. You may also disable the URL auto update feature by patching the ttx.cgi, just remove lines that read

Code:
if ($cfg->get('httphost') ne $ENV{HTTP_HOST} || $cfg->get('scriptname') ne $ENV{SCRIPT_NAME}) {
  $cfg->set('httphost', $ENV{HTTP_HOST});
  $cfg->set('scriptname', $ENV{SCRIPT_NAME});
  $cfg->save();
}
Logged

Follow me on: LinkedIn
wvanhorn
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #2 on: January 24, 2007, 09:09:27 AM »

Alex,
Thank-you.

Bill
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.02 seconds with 19 queries.