Add port in OTRS_CONFIG_FQDN

Moderator: crythias

Locked
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Add port in OTRS_CONFIG_FQDN

Post by HervE »

Hello forum,

For some reason I had to install OTRS on a server with a different port from default 80. Let's say port 4000.
I mean now for me OTRS address is http://XXX.XXX.XXX.XXX:4000/otrs/index.pl (where the X's stand for the server IP address).
So I wanted to add the port in the variable OTRS_CONFIG_FQDN through SysConfig Framework->Core: I set FQDN to XXX.XXX.XXX.XXX:4000

But when I press the "Update" button at the bottom, FQDN is set back to XXX.XXX.XXX.XXX (i.e. port is removed). Why? Is there a control on this field?

How can I achieve?

A nasty idea is to mention the port in all notifications
<OTRS_CONFIG_HttpType>://<OTRS_CONFIG_FQDN>:4000/<OTRS_CONFIG_ScriptAlias>index.pl?Action=AgentZoom&TicketID=<OTRS_TICKET_TicketID>
I'm sure it works, but that's ugly. And not efficient because I will have to write it everywhere.
So?
Is there another variable for that purpose?

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Add port in OTRS_CONFIG_FQDN

Post by jojo »

as the FQDN is not only used in the notifications you should not have the port in here.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Add port in OTRS_CONFIG_FQDN

Post by HervE »

OK, that's the answer for the control of this field.

So, how can I do? Is there another field for the port?

HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Add port in OTRS_CONFIG_FQDN

Post by jojo »

No, there is no additional field. You can create one (Config.pm) but also need to change the notifications
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Add port in OTRS_CONFIG_FQDN

Post by crythias »

How is it any uglier to type :4000 vs <OTRS_PORT>?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Add port in OTRS_CONFIG_FQDN

Post by HervE »

Looks much uglier to me. I just dislike hard-coded things.

For instance, if one day the port is modified to let's say 4001, I want to have to modify it in only one place (OTRS_PORT) - and not in all notifications.

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Locked