Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. christian82
    C
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    christian82

    @christian82

    0
    Reputation
    34
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Age 24

    christian82 Unfollow Follow

    Latest posts made by christian82

    • RE: OTRS und I-DOIT auf dem gleichen Server

      Ist ja das gleiche was ich schon habe..

      Was ich suche ist die korrekte Apache2 config Datei um zusätzlich zu <meine-ip>/otrs auch <meine-ip>/i-doit zu haben</meine-ip></meine-ip>

      posted in Betrieb
      C
      christian82
    • OTRS und I-DOIT auf dem gleichen Server

      Hallo zusammen,

      ich habe ein bereits funktionierendes OTRS auf einem Ubuntu Server laufen. Auf diesem System möchte ich nun auch I-DOIT Open installieren.

      I-DOIT soll unter <meine-ip>/i-doit erreichbar sein, OTRS wie bisher unter <meine-ip>/otrs

      ruft ein Kunde <meine-ip>auf, soll automatisch auf <meine-ip>/otrs/customer.pl umgeleitet werden.

      Der OTRS-Teil funktioniert wie er soll, habe es nur zum besseren Verständnis nochmal erläutert.

      Leider kriege ich das unter der Apache 2 Config file nicht hin.

      Hier die Config files:

      000-default.conf:

      
       <virtualhost *:80=""># The ServerName directive sets the request scheme, hostname and port that
      	# the server uses to identify itself. This is used when creating
      	# redirection URLs. In the context of virtual hosts, the ServerName
      	# specifies what hostname must appear in the request's Host: header to
      	# match this virtual host. For the default virtual host (this file) this
      	# value is not decisive as it is used as a last resort host regardless.
      	# However, you must set it for any further virtual host explicitly.
      	#ServerName www.example.com
      
      	ServerAdmin webmaster@localhost
      	DocumentRoot /opt/otrs/bin/cgi-bin
      
      	RedirectMatch ^/$ /otrs/customer.pl/$1
      	RedirectMatch ^/agent/$ /otrs/index.pl/$1
      
      	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
      	# error, crit, alert, emerg.
      	# It is also possible to configure the loglevel for particular
      	# modules, e.g.
      	#LogLevel info ssl:warn
      
      	ErrorLog ${APACHE_LOG_DIR}/error.log
      	CustomLog ${APACHE_LOG_DIR}/access.log combined
      
      	# For most configuration files from conf-available/, which are
      	# enabled or disabled at a global level, it is possible to
      	# include a line for only one particular virtual host. For example the
      	# following line enables the CGI configuration for this host only
      	# after it has been globally disabled with "a2disconf".
      	#Include conf-available/serve-cgi-bin.conf</virtualhost> 
      
      # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
      
      

      i-doit.conf:

      
       <virtualhost *:81=""># The ServerName directive sets the request scheme, hostname and port that
      	# the server uses to identify itself. This is used when creating
      	# redirection URLs. In the context of virtual hosts, the ServerName
      	# specifies what hostname must appear in the request's Host: header to
      	# match this virtual host. For the default virtual host (this file) this
      	# value is not decisive as it is used as a last resort host regardless.
      	# However, you must set it for any further virtual host explicitly.
      	#ServerName www.example.com
      
      	ServerAdmin webmaster@localhost
      	DocumentRoot /var/www/i-doit
      	#Alias /i-doit/ /var/www/i-doit/
      
      #	RedirectMatch ^/$ /otrs/customer.pl/$1
      #	RedirectMatch ^/agent/$ /otrs/index.pl/$1
      
      	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
      	# error, crit, alert, emerg.
      	# It is also possible to configure the loglevel for particular
      	# modules, e.g.
      	#LogLevel info ssl:warn
      
      	ErrorLog ${APACHE_LOG_DIR}/error.log
      	CustomLog ${APACHE_LOG_DIR}/access.log combined
      
      	# For most configuration files from conf-available/, which are
      	# enabled or disabled at a global level, it is possible to
      	# include a line for only one particular virtual host. For example the
      	# following line enables the CGI configuration for this host only
      	# after it has been globally disabled with "a2disconf".
      	#Include conf-available/serve-cgi-bin.conf</virtualhost> 
      
      # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
      
      

      otrs.conf:

      
      # --
      # added for OTRS (http://otrs.org/)
      # --
      
      ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
      Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
      
      # 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'
      
       <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_deflate.c="">AddOutputFilterByType DEFLATE text/html text/javascript text/css text/xml application/json text/json</ifmodule></directory> 
      
       <directory "="" opt="" otrs="" var="" httpd="" htdocs="">AllowOverride None
      
          <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_deflate.c="">AddOutputFilterByType DEFLATE text/html text/javascript text/css text/xml application/json text/json</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> 
      
       <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
      
      ```</meine-ip></meine-ip></meine-ip></meine-ip>
      posted in Betrieb
      C
      christian82