• Deutsch
  • English
  • Anmeldung OTOBO Community
+49 (0)9427 68 39 000
OTOBO
  • SOFTWARE
    • Software | Überblick
    • IT Service Management
    • Customer Service Management
    • Enterprise Service Management
    • Demo
    • Download
    • Dokumentation
  • SERVICES
    • Überblick Services
    • Beratung
    • Training
    • Entwicklung
    • OTRS Migration zu OTOBO
    • Support
    • Managed Service
    • Support-Portal
  • UNTERNEHMEN
    • Über uns
    • Karriere
    • Partner
    • Kontakt
    • Newsletter
  • RESSOURCEN
  • COMMUNITY
    • Open Source
    • Community Forum
    • Download
    • Dokumentation
    • OTOBO übersetzen
  • Click to open the search input field Click to open the search input field Suche
  • Menü Menü

Schlagwörter: vhosts php

Ansicht von 1 Antwort-Thread
  • Autor
    Beiträge
    • 17. Januar 2023 um 8:18 Uhr - Views: 1048 #14563
      Michael Kochendörfer
      Teilnehmer

        Ich migriere von OTRS 5 auf OTOBO 10.1 und habe Erweiterungen die per PHP geladen werden.

        Um diese Erweiterung zu laden, habe ich in der vhosts.conf unter OTRS5 einen Virtualhost erstellt um die Daten nachzuladen, sieht so aus:

        <VirtualHost *:80>
        ServerName 10.100.20.78
        DocumentRoot /opt/otrs/var/httpd/htdocs
        ErrorLog /opt/otrs/log/error.log
        CustomLog /opt/otrs/log/access.log combined
        </VirtualHost>

        ScriptAlias /otrs/ „/opt/otrs/bin/cgi-bin/“
        Alias /otrs-web/ „/opt/otrs/var/httpd/htdocs/“

        <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>
        # ErrorDocument 403 /otrs/customer.pl
        ErrorDocument 403 /otrs/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>
        PerlOptions -ParseHeaders
        </Location>

        </IfModule>

        <Directory „/opt/otrs/bin/cgi-bin/“>
        AllowOverride None
        Options +ExecCGI -Includes

        <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>

        <IfModule mod_filter.c>
        <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/html text/javascript application/javascript text/css text/xml application/json text/json
        </IfModule>
        </IfModule>

        </Directory>

        <Directory „/opt/otrs/var/httpd/htdocs/“>
        AllowOverride All
        Options -Indexes

        <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>

        <IfModule mod_filter.c>
        <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/html text/javascript application/javascript text/css text/xml application/json text/json
        </IfModule>
        </IfModule>

        # 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

        </Directory>

        # 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.
        # <Location /otrs/public.pl>
        # <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>

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

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

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

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

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

         

        Um Otobo zu laden, sieht das bisher so aus:

        <VirtualHost *:80>
        ServerName 10.100.20.79
        DocumentRoot /opt/otobo/var/httpd/htdocs
        ErrorLog /opt/otobo/log/error.log
        CustomLog /opt/otobo/log/access.log combined

        # AllowOverride All

        #RewriteEngine on
        #RewriteRule ^apple/(.*) folder1/$1

        <Directory „/opt/otobo/var/httpd/htdocs“>
        AllowOverride All
        Options +FollowSymLinks -MultiViews
        Options +Indexes

        #Order allow,deny
        #Allow from all
        Require all granted

        # <IfModule mod_deflate.c>
        # AddOutputFilterByType DEFLATE text/html text/javascript text/css text/xml application/json text/json
        # </IfModule>
        <FilesMatch \.php$>
        <If „-f %{REQUEST_FILENAME}“>
        SetHandler „proxy:unix:/var/run/php/php8.1-fpm.sock|fcgi://localhost“
        </If>
        </FilesMatch>

        # AllowOverride All
        # Options +Indexes

        #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>

        # <IfModule mod_filter.c>
        # <IfModule mod_deflate.c>
        # AddOutputFilterByType DEFLATE text/html text/javascript application/javascript text/css text/xml application/json text/json
        # </IfModule>
        # </IfModule>

        # 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
        # AddType text/css .css
        AddHandler application/x-httpd-php .js .xml .htc

        </Directory>

        #ScriptAlias / „/usr/local/www/cgi-bin/

        </VirtualHost>

        ScriptAlias /otobo/ „/opt/otobo/bin/cgi-bin/“
        #Alias /otobo-web/ „/opt/otobo/var/httpd/htdocs/“
        #Alias / „/opt/otobo/var/httpd/htdocs/“

         

        Ist es möglich PHP Dateien und JavaScript-Dateien gleichzeitig auszuliefern und diese nicht an Perl zu übergeben?

         

         

      • 17. Januar 2023 um 13:00 Uhr #14567
        Michael Kochendörfer
        Teilnehmer

          Genauer geht es mir darum,

          dass die Standard vhosts config Datei so eingestellt ist, dass sie alle Anfragen entgegennimmt.

          Gibt es bereits eine vhosts – Datei von otobo welches wie in otrs 5 nicht alle Anfagen entgegennimmt,

          sondern nur die die für OTOBO vorgesehen sind?

           

           

      • Autor
        Beiträge
      Ansicht von 1 Antwort-Thread
      • Du musst angemeldet sein, um auf dieses Thema antworten zu können.

      Foren durchsuchen

      Anmeldung

      Anmeldung

      Konto erstellen
      Passwort vergessen?

      Login via Social

      Profil

      Bitte vervollständigen Sie nach der Registrierung Ihr Profil, das vereinfacht die spätere Kommunikation enorm. Ihre Profileinstellung finden Sie, wenn Sie auf Ihr Avatarbild klicken.

      Sie können Ihren Avatar ändern, indem Sie sich mit Ihrer E-Mail-Adresse unter gravatar.com registrieren.

      Letzte Aktivitäten

      • Dynamische Felder in AgentTicketNote mit ACL verstecken
      • FAQ: kaputtes Copy & Paste von Bildern zwischen Artikeln
      • Benachrichtigung „Ticket wurde mir entzogen“ möglich?
      • Statistik Anzahl Tickets pro Agent
      • Docker: Ändern des redis Hosts

      Unternehmen

      Über uns
      Karriere
      Stellenbörse
      Partner werden
      Kontakt
      Newsletter

      OTOBO | Simplify work and create exceptional service experiences.

      Die Source Code Owner und Maintainer hinter OTOBO.

      Software

      Service Management-Plattform
      OTOBO Demo
      OTOBO Download
      OTOBO Dokumentation

      Security-Problem melden:
      security@otobo.org

      Services

      Support-Portal
      Beratung
      Training
      Support
      Managed Services
      Erweiterung
      OTRS Migration
      Partner finden

      Community

      Open Source
      Community Forum
      Mitmachen
      OTOBO Developer
      OTOBO@GitHub

      © 2026 Rother OSS GmbH | All rights reserved.
      • Cookie-Einstellungen
      • Impressum
      • Datenschutz
      • Haftungsausschluss
      Nach oben scrollen Nach oben scrollen Nach oben scrollen