I need to set up 2 instances of OTRS on the same box (as the same
user) in different directories. I got the web interface to
work fine by using 2 different ScriptAlias lines.
E.g.
ScriptAlias /otrstest /home/otrs/test
ScriptAlias /otrslive /home/otrs/live
However all the email notifications always had the same
path "......./otrs/index.pl.....".
The following diff to Notification.pm makes the emailed links
use a new Self->{ScriptAlias} which can be set up in Config.pm
This is against very recent CVS version.
--
Phil Davis
IT Action
*** Notification.pm Thu Oct 10 18:07:15 2002
--- /home/otrs/src/otrs/Kernel/Config/Notification.pm Sat Oct 5
17:10:21 2002
***************
*** 46,52 ****
<snip>
!
http://$Self->{FQDN}/$Self->{ScriptAlias}/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
--- 46,52 ----
<snip>
!
http://$Self->{FQDN}/otrs/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
***************
*** 74,80 ****
<snip>
!
http://$Self->{FQDN}/$Self->{ScriptAlias}/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
--- 74,80 ----
<snip>
!
http://$Self->{FQDN}/otrs/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
***************
*** 95,101 ****
<snip>
!
http://$Self->{FQDN}/$Self->{ScriptAlias}/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
--- 95,101 ----
<snip>
!
http://$Self->{FQDN}/otrs/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
***************
*** 115,121 ****
Comment:
!
http://$Self->{FQDN}/$Self->{ScriptAlias}/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
--- 115,121 ----
Comment:
!
http://$Self->{FQDN}/otrs/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
***************
*** 133,139 ****
Note:
!
http://$Self->{FQDN}/$Self->{ScriptAlias}/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
--- 133,139 ----
Note:
!
http://$Self->{FQDN}/otrs/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
***************
*** 149,155 ****
' ' moved a
ticket [] into ''.
!
http://$Self->{FQDN}/$Self->{ScriptAlias}/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
--- 149,155 ----
' ' moved a
ticket [] into ''.
!
http://$Self->{FQDN}/otrs/index.pl?Action=AgentZoom&TicketID=
Your OTRS Notification Master
*** Config.pm Thu Oct 10 18:45:35 2002
--- Config.pm.orig Thu Oct 10 18:44:24 2002
***************
*** 52,62 ****
# (Full qualified domain name of your system.)
$Self->{FQDN} = 'yourhost.example.com';
- # ScriptAlias
- # Prefix to index.pl used as ScriptAlias in web config
- # (Used when emailing links to agents).
- $Self->{ScriptAlias} = 'otrs';
-
# AdminEmail
# (Email of the system admin.)
$Self->{AdminEmail} = 'admin@example.com';