Location /otrs, /customer not working

Moderator: crythias

Locked
brensly
Znuny newbie
Posts: 10
Joined: 15 Feb 2012, 09:56
Znuny Version: 5.0.3
Real Name: Alexander Eriksson

Location /otrs, /customer not working

Post by brensly »

Hello!

I'm having trouble with the locations stated in topic.
Entering https://mydomain.com/otrs/ or https://mydomain.com/customer/ gives a 404 error and the apache error log says:

Code: Select all

[error] [client {IP}] Attempt to serve directory: /opt/otrs/bin/cgi-bin/
This would indicate that there is a problem with the DirectoryIndex parameter in apache2 config, right?

Entering https://mydomain.com redirects the user to https://mydomain.com/otrs/index.pl so that is fine.

Here is my /etc/apache2/conf.d/otrs.conf

Code: Select all

# --
# added for OTRS (http://otrs.org/)
# $Id: apache2-httpd.include.conf,v 1.18.2.3 2011/04/19 22:09:24 en Exp $
# --

# agent, admin and customer frontend
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
ScriptAlias /customer/ "/opt/otrs/bin/cgi-bin/"

# activate this if you are using an Oracle database
#SetEnv ORACLE_HOME /path/to/your/oracle/
#SetEnv ORACLE_SID YOUR_SID
#SetEnv NLS_LANG AMERICAN_AMERICA.UTF8
#SetEnv NLS_DATE_FORMAT 'YYYY-MM-DD HH24:MI:SS'

# if mod_perl is used
<IfModule mod_perl.c>

    # load all otrs modules
    Perlrequire /opt/otrs/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
        SetHandler  perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv
        Order allow,deny
        Allow from all
    </Location>

    <Location /customer/>
        ErrorDocument 403 /otrs/customer.pl
#        ErrorDocument 403 /otrs/index.pl
        SetHandler  perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv
      DirectoryIndex customer.pl
        Order allow,deny
        Allow from all
    </Location>

</IfModule>

# directory settings (admin)
<Directory "/opt/otrs/bin/cgi-bin/">
    AllowOverride None
    Options +ExecCGI -Includes
    Order allow,deny
    Allow from all
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule mod_headers.c>
    <Directory "/opt/otrs/var/httpd/htdocs/skins/*/*/css-cache">
        <FilesMatch "\.(css|CSS)$">
            Header set Cache-Control "max-age=2592000 must-revalidate"
        </FilesMatch>
    </Directory>

    <Directory "/opt/otrs/var/httpd/htdocs/js/js-cache">
        <FilesMatch "\.(js|JS)$">
            Header set Cache-Control "max-age=2592000 must-revalidate"
        </FilesMatch>
    </Directory>
</IfModule>

# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 4000
Any idea why the error occurs?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Location /otrs, /customer not working

Post by crythias »

/otrs/index.pl = agent
/otrs/customer.pl = customer

You don't have index.pl as DirectoryIndex for /otrs/

We can't verify which url is providing problems for your error
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
Locked