Apache2 mod_perl configuration for another instance of OTRS

Moderator: crythias

Locked
hitazcl
Znuny newbie
Posts: 15
Joined: 08 Oct 2010, 10:24
Znuny Version: 2.4.8

Apache2 mod_perl configuration for another instance of OTRS

Post by hitazcl »

Dear all,

I've should create a second instance of OTRS on the same server.
I did.
My problem now is, how I have to configure the Apache2 server for this second folder.
The url of the first instance is [servername.domain]/otrs and my second one [servername.domain]/otrs2 - very simple... :S

Ok, the configuration "/etc/apache2/conf.d/otrs2" looks like this:

Code: Select all

<IfModule mod_perl.c>

    # load all otrs modules
    Perlrequire /usr/share/otrs/scripts/apache2-perl-startup.pl
    Perlrequire /usr/share/otrs2/scripts/apache2-perl-startup.pl


        # Apache::Reload - Reload Perl Modules when Changed on Disk
        PerlModule Apache2::Reload
        PerlInitHandler Apache2::Reload
  PerlModule Apache2::RequestRec

    # set mod_perl2 options
    <Location /otrs>
#        ErrorDocument 403 /otrs/customer.pl
        ErrorDocument 403 /otrs/index.pl
                ErrorDocument 404 /otrs/index.pl
        SetHandler  perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI +FollowSymLinks
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv
        Order allow,deny
        Allow from all
       <IfModule mod_rewrite.c>
          RewriteEngine On
          RewriteCond /usr/share/otrs/var/httpd/htdocs/maintenance.html -l
          RewriteRule ^.*$ /otrs-web/maintenance.html
       </IfModule>
    </Location>

    # set mod_perl2 options

# directory settings
<Directory "/usr/share/otrs/bin/cgi-bin/">
    AllowOverride None
    Options +ExecCGI -Includes
    Order allow,deny
    Allow from all
</Directory>
<Directory "/usr/share/otrs/var/httpd/htdocs/">
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
My target is to use this single file for both subfolders.

Is anybody there to help me please?

Regards
Locked