Change otrs name in URL

Moderator: crythias

Post Reply
jamiegriffiths
Znuny newbie
Posts: 9
Joined: 18 Jun 2021, 08:55
Znuny Version: OTRS6
Real Name: Jamie Griffiths

Change otrs name in URL

Post by jamiegriffiths »

Hello

Is it possible to change the name in the url IE

https://xxx/[b]otrs[/b]/customer.pl
https://xxx/[b]otrs[/b]/index.pl

is it just a simple case of changing the folder name?

or will this cause problems?

thanks
shawnbeasley
Znuny Employee
Posts: 132
Joined: 13 Sep 2021, 09:38
Znuny Version: Znuny 6.3.x
Real Name: Shawn Beasley
Company: Znuny

Re: Change otrs name in URL

Post by shawnbeasley »

What is the desired URL?
jamiegriffiths
Znuny newbie
Posts: 9
Joined: 18 Jun 2021, 08:55
Znuny Version: OTRS6
Real Name: Jamie Griffiths

Re: Change otrs name in URL

Post by jamiegriffiths »

Something like sd (Service Desk)
shawnbeasley
Znuny Employee
Posts: 132
Joined: 13 Sep 2021, 09:38
Znuny Version: Znuny 6.3.x
Real Name: Shawn Beasley
Company: Znuny

Re: Change otrs name in URL

Post by shawnbeasley »

jamiegriffiths
Znuny newbie
Posts: 9
Joined: 18 Jun 2021, 08:55
Znuny Version: OTRS6
Real Name: Jamie Griffiths

Re: Change otrs name in URL

Post by jamiegriffiths »

Thanks,

so if I add

Alias /otrs-web/ "/srv/otrs/var/httpd/htdocs/"
ScriptAlias / "/srv/otrs/bin/cgi-bin/"

this will remove otrs?

we would be happy to remove the whole name
skullz
Znuny superhero
Posts: 621
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Change otrs name in URL

Post by skullz »

I guess,
From: http://FQDN/otrs/index.pl
To: http://FQDN/servicedesk/index.pl

Find where the otrs apache script is located

Change

Code: Select all

(-) ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
(+) ScriptAlias /servicedesk/ "/opt/otrs/bin/cgi-bin/"

Code: Select all

<IfModule mod_perl.c>

    # Setup environment and preload modules
    Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl

    # Reload Perl modules when changed on disk
    PerlModule Apache2::Reload
    PerlInitHandler Apache2::Reload

    # general mod_perl2 options
(-)    <Location /otrs>
(+)    <Location /servicedesk>
#        ErrorDocument 403 /otrs/customer.pl
(-)      ErrorDocument 403 /otrs/index.pl
(+)      ErrorDocument 403 /servicedesk/index.pl
        SetHandler  perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv

        <IfModule mod_version.c>
            <IfVersion < 2.4>
                Order allow,deny
                Allow from all
            </IfVersion>
            <IfVersion >= 2.4>
                Require all granted
            </IfVersion>
        </IfModule>
        <IfModule !mod_version.c>
            Order allow,deny
            Allow from all
        </IfModule>
    </Location>
    # mod_perl2 options for GenericInterface
(-)    <Location /otrs/nph-genericinterface.pl>
(+)    <Location /servicedesk/nph-genericinterface.pl>
        PerlOptions -ParseHeaders
    </Location>

</IfModule>
Then, restart webserver...
and also change the ScriptAlias in System Configuration

good luck
Post Reply