Viewing 0 reply threads
  • Author
    Posts
    • #11473
      possebon Fernando
      Participant

        Hi,

        I’m trying to configure my Otobo instance running on CentOS 8 with Apache and this server is behind a nginx as reverse proxy and SSL certificates.

        The FQDN to agent portal is https://servicedesk.mydomain.com and the FQDN to customer portal is https://support.mydomain.com.

        I configured the nginx and apache using similar OTRS config, but when I try to login on agent portal, after clicking on login, the page is refreshed, and login form is cleared.

        Looking on Developer tools on browser, I found this message:

        Unchecked runtime. lastError: Could not establish connection. Receiving end does not exist. index.pl:1

        This is my Apache config (zzz_otobo.conf)


        # --
        # Copyright (C) 2019-2021 Rother OSS GmbH, https://otobo.de/
        # added for OTOBO (http://otobo.de/)
        # --

         

        ServerAdmin webmaster@mydomain.com
        ServerName servicedesk.mydomain.com
        Alias /otobo-web/ “/opt/otobo/var/httpd/htdocs/”
        Alias / “/opt/otobo/bin/cgi-bin/”

        DocumentRoot /opt/otobo/bin/cgi-bin/

        # Setup environment and preload modules
        PerlOptions +Parent
        Perlrequire /opt/otobo/scripts/apache2-perl-startup.pl

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

        # general mod_perl2 options

        DirectoryIndex index.pl
        AddHandler perl-script .pl .cgi
        ErrorDocument 403 /otobo/index.pl
        #SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv

        Order allow,deny
        Allow from all

        = 2.4>
        Require all granted

        Order allow,deny
        Allow from all

        # mod_perl2 options for GenericInterface

        PerlOptions -ParseHeaders

         

        Alias /otobo-web/ “/opt/otobo/var/httpd/htdocs/”
        Alias / “/opt/otobo/bin/cgi-bin/”
        ServerAdmin webmaster@mydomain.com
        ServerName suporte.mydomain.com
        #ErrorLog logs/customer.mydomain.com-error_log
        #CustomLog logs/customer.mydomain.com-access_log common
        DocumentRoot /opt/otobo/bin/cgi-bin/

        # ErrorDocument 403 /otobo/customer.pl
        DirectoryIndex customer.pl
        #AddHandler perl-script .pl .cgi
        ErrorDocument 403 /otobo/index.pl
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv

        Order allow,deny
        Allow from all

        = 2.4>
        Require all granted

        Order allow,deny
        Allow from all

         

        <Directory “/opt/otobo/bin/cgi-bin/”>
        AllowOverride None
        Options +ExecCGI -Includes

        Order allow,deny
        Allow from all

        = 2.4>
        Require all granted

        Order allow,deny
        Allow from all

        AddOutputFilterByType DEFLATE text/html text/javascript application/javascript text/css text/xml application/json text/json

         

        <Directory “/opt/otobo/var/httpd/htdocs/”>
        AllowOverride None

        Order allow,deny
        Allow from all

        = 2.4>
        Require all granted

        Order allow,deny
        Allow from all

        AddOutputFilterByType DEFLATE text/html text/javascript application/javascript text/css text/xml application/json text/json

        # Make sure CSS and JS files are read as UTF8 by the browsers.
        AddCharset UTF-8 .css
        AddCharset UTF-8 .js

        # Set explicit mime type for woff fonts since it is relatively new and apache may not know about it.
        AddType application/font-woff .woff

         

        # Allow access to public interface for unauthenticated requests on systems with set-up authentication.
        # Will work only for RegistrationUpdate, since page resources are still not be loaded.
        #
        #
        #
        # Order allow,deny
        # Allow from all
        #
        # = 2.4>
        # Require all granted
        #
        #
        #
        # Order allow,deny
        # Allow from all
        #
        #

        # Cache css-cache for 30 days
        <Directory “/opt/otobo/var/httpd/htdocs/skins/*/*/css-cache”>
        <FilesMatch “\.(css|CSS)$”>
        Header set Cache-Control “max-age=2592000 must-revalidate”

        # Cache css thirdparty for 4 hours, including icon fonts
        <Directory “/opt/otobo/var/httpd/htdocs/skins/*/*/css/thirdparty”>
        <FilesMatch “\.(css|CSS|woff|svg)$”>
        Header set Cache-Control “max-age=14400 must-revalidate”

        # Cache js-cache for 30 days
        <Directory “/opt/otobo/var/httpd/htdocs/js/js-cache”>
        <FilesMatch “\.(js|JS)$”>
        Header set Cache-Control “max-age=2592000 must-revalidate”

        # Cache js thirdparty for 4 hours
        <Directory “/opt/otobo/var/httpd/htdocs/js/thirdparty/”>
        <FilesMatch “\.(js|JS)$”>
        Header set Cache-Control “max-age=14400 must-revalidate”

        # Limit the number of requests per child to avoid excessive memory usage
        MaxRequestsPerChild 4000

         

         

        Any help on this issue?

         

    Viewing 0 reply threads
    • You must be logged in to reply to this topic.