I found this topic:
http://forums.otrs.org/viewtopic.php?f=60&t=9329
And I want to know in this step:
Where is your VirtualHost config?: /etc/apache2/sites-enabled/000-default?Change DocumentRoot in your virtual host config (NOT otrs.conf)
Thanks
Moderator: crythias
Where is your VirtualHost config?: /etc/apache2/sites-enabled/000-default?Change DocumentRoot in your virtual host config (NOT otrs.conf)
Code: Select all
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server admin.suporte.franca.unesp.br (/etc/apache2/sites-enabled/admin.suporte.franca.unesp.br:3)
port 80 namevhost admin.suporte.franca.unesp.br (/etc/apache2/sites-enabled/admin.suporte.franca.unesp.br:3)
port 80 namevhost suporte.franca.unesp.br (/etc/apache2/sites-enabled/suporte.franca.unesp.br:3)
Syntax OK
Code: Select all
#mod so endereco de suporte (/etc/apache2/sites-available/suporte.franca.unesp.br)
#
<VirtualHost *:80>
ServerAdmin cgomes@franca.unesp.br
ServerName suporte.franca.unesp.br
ServerAlias suporte.franca.unesp.br
# Indexes + Directory Root.
DirectoryIndex customer.pl
DocumentRoot /opt/otrs/bin/cgi-bin/
# CGI Directory
# ScriptAlias /otrs/ /opt/otrs/bin/cgi-bin/
<Location /otrs>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
PerlSetupEnv On
</Location>
<Directory />
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .pl
</DirectOry>
# Logfiles
ErrorLog /var/log/otrs/customer/error.log
CustomLog /var/log/otrs/customer/access.log combined
</VirtualHost>
Code: Select all
#mod do endereco de suporte (/etc/apache2/sites-available/admin.suporte.franca.unesp.
br)
#
<VirtualHost *:80>
ServerAdmin cgomes@franca.unesp.br
ServerName admin.suporte.franca.unesp.br
ServerAlias admin.suporte.franca.unesp.br
# Indexes + Directory Root.
DirectoryIndex index.pl
DocumentRoot /opt/otrs/bin/cgi-bin/
# CGI Directory
# ScriptAlias /otrs/ /opt/otrs/bin/cgi-bin/
<Location /otrs>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
PerlSetupEnv On
</Location>
<Directory />
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride None
AddHandler cgi-script .pl
</Directory>
# Logfiles
ErrorLog /var/log/otrs/admin/error.log
CustomLog /var/log/otrs/admin/access.log combined
</VirtualHost>
Code: Select all
# --
# added for OTRS (http://otrs.org/)
# $Id: apache2-httpd.include.conf,v 1.25 2011/11/05 17:39:09 mb Exp $
# --
# agent, admin and customer frontend
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
Alias / "/opt/otrs/bin/cgi-bin/"
# 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'
# if mod_perl is used
<IfModule mod_perl.c>
# load all otrs modules
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
# Apache::Reload - Reload Perl Modules when Changed on Disk
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlModule Apache2::RequestRec
# set 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
# Order allow,deny
# Allow from all
# </Location>
# set mod_perl2 option for generic interface
<Location /otrs/nph-genericinterface.pl>
PerlOptions -ParseHeaders
</Location>
</IfModule>
# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
ErrorDocument 403 /index.pl
DirectoryIndex index.pl
AddHandler perl-script .pl .cgi
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_headers.c>
<Directory "/opt/otrs/var/httpd/htdocs/skins/*/*/css-cache">
<FilesMatch "\.(css|CSS)$">
Header set Cache-Control "max-age=2592000 must-revalidate"
</FilesMatch>
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/js/js-cache">
<FilesMatch "\.(js|JS)$">
Header set Cache-Control "max-age=2592000 must-revalidate"
</FilesMatch>
</Directory>
</IfModule>
# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 4000