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>
-
Hallo christian82,
wie waers mit einem redirect in der index.html?
<title>customer.pl</title>
/otrs/customer.pl>Gruss,
jkondek -
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>
-
Servus,
den virtual Host hast Du ja schon in der 000-default.conf drin, wozu nochmal bei i-doit.conf? Dort stehen doch einfach nur generelle Angaben drin, die dann i-doit in den versch. Hosts bereitstellen würden (sofern es mehrere gäbe, bspw. nochmal für SSL/443).
Wenn Dein DocumentRoot im Server / 1.vhost /var/www ist, müßtest Du für i-doit unter /var/www/i-doit/ gar nix weiter eintragen.
Anonsten reicht in der i-doit.conf meiner Meinung nach:
Alias /i-doit/ "/var/www/i-doit/" <directory var="" www="" i-doit="">Options None AllowOverride All Order allow,deny allow from all</directory>
Der Directory-Block ist der Datei INSTALL der i-doit Installation entnommen, wo im Prinzip alles drin steht….
EDIT: Der Fehler wenn man so will ist einfach, in der 000-default.conf das DocumentRoot auf /opt/otrs/bin/cgi-bin zu setzen. Das gehört auf /var/www gesetzt! Die OTRS spezifischen Einstellungen macht man in der otrs.conf und die für i-doit in der i-doit.conf.