#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>
and this for suporte.franca.unesp.br, notice that this one iv copyed the full otrs.conf file from conf.d, and changed some lines so it fires up the customer.pl.
# Criado em 17/04/2012 - cgomes@franca.unesp.br
#
<VirtualHost *:80>
# 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 customer.pl
AddHandler perl-script .pl .cgi
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order Deny,Allow
Deny from all
Allow from 200.145.119.128/27
</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
</VirtualHost>
tambem nao funcionou. ja tentei o caminho relativo completo e etc...2012/4/17 Douglas Nascimento <douglasnjs@gmail.com>
Eu não tenho certeza, mas acho que em DirectoryIndex você deveria colocar apenas index.pl ou customer.pl, sem o "/otrs/". Exemplo:
DirectoryIndex index.pl
DirectoryIndex customer.plOn Tue, Apr 17, 2012 at 5:06 PM, Carlos Gomes - STI Unesp Franca <cgomes@franca.unesp.br> wrote:
---------------------------------------------------------------------Hello Everyone!
Iv set up different subdomains so i can point users to the customer.pl page for ticket management, and another subdomain for otrs administration. Iv followed many suggestions and documentations for apache, but cant manage to use different hosts for both index.pl and customer.pl, can anyone help me , if set up similar environment ?
my apache configs are as this:
subdomain: admin.suporte.franca.unesp.br
#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 /otrs/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>
subdomain suporte.franca.unesp.br :
#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 /otrs/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>
but both opens the index.pl file...
iv also used this thread as refference:
http://lists.otrs.org/pipermail/otrs/2005-October/009192.html
but seems quite old, and only one vhost wont suit me for logging purposes.
--
[]'s
---------------------------------
Carlos Gomes
Assistente de Informática II - STI
skype: cgomes.unesp
55(16)3706-8783UNESP/Franca - FCHS
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--
Atenciosamente,
Douglas Nascimento de Jesus
beaglenetwork.blogspot.com
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--
[]'s
---------------------------------
Carlos Gomes
Assistente de Informática II - STI
skype: cgomes.unesp
55(16)3706-8783UNESP/Franca - FCHS