Hi!

in the scripts Directory is the following example for using apache1 and
mod_perl:
------------------------
# --
# added for OTRS (http://otrs.org/)
# --
                                                                                       
                                                                       
# agent, admin and customer frontend (mod_alias required!)
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
                                                                                       
                                                                       
# load all otrs modules (speed improvement!)
#Perlrequire /opt/otrs/scripts/apache-perl-startup.pl
                                                                                       
                                                                       
# Apache::StatINC - Reload %INC files when updated on disk
# (just use it for testing, setup, ... not for high productiv systems)
#PerlInitHandler Apache::StatINC
                                                                                       
                                                                       
<Location /otrs>
#  ErrorDocument 403 /otrs/customer.pl
  ErrorDocument 403 /otrs/index.pl
  SetHandler  perl-script
  PerlHandler Apache::Registry
  Options ExecCGI
  PerlSendHeader On
  PerlSetupEnv On
</Location>
------------------------

but using ScriptAlias and SetHandler/PerlHandler is not recommended by perl.apache.org
http://perl.apache.org/docs/1.0/guide/config.html#Running_CGI__PerlRun__and_Registry_Scripts_Located_in_the_Same_Directory
better use:
    Alias /otrs "/opt/otrs/bin/cgi-bin"
    Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
                                                                                       
                                                                       
    # load all otrs modules (speed improvement!)
    #Perlrequire /opt/otrs/scripts/apache-perl-startup.pl
                                                                                       
                                                                       
    # Apache::StatINC - Reload %INC files when updated on disk
    # (just use it for testing, setup, ... not for high productiv systems)
    #PerlInitHandler Apache::StatINC
                                                                                       
                                                                       
    DirectoryIndex index.pl
    <Location /otrs>
    #  ErrorDocument 403 /otrs/customer.pl
    #  ErrorDocument 403 /otrs/index.pl
      SetHandler  perl-script
      PerlHandler Apache::Registry
      Options ExecCGI Indexes
      PerlSendHeader On
      PerlSetupEnv On
    </Location>

this makes also possible to have to virtual hosts vor the agents and the users i.e. 

virtualhost otrs-intern.example.com
  direktoryIndex index.pl

virtualhost customer.example.com
  direktoryindex customer.pl


http://otrs-intern.example.com/otrs calls the agent-logon screen 
and 
http://customer.example.com/otrs calls the customer.pl

:-)




-- 
J�rg Friedrich
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to