Hello!
You'll need to enable mod_alias in Apache (or Apache2). Then you could
use
something like this:
[---]
Perlrequire /usr/share/otrs/otrs-startup.pl
# Apache::Reload - Reload Perl Modules when Changed on Disk
#PerlModule Apache::Reload
#PerlInitHandler Apache::Reload
#Used for FAQ's
Alias /htmlArea/ /usr/share/otrs/var/httpd/htdocs/htmlArea/
NameVirtualHost soporte.valmesa.net
<VirtualHost soporte.valmesa.net>
Alias /otrs-web/ "/usr/share/otrs/var/httpd/htdocs/"
ScriptAlias /otrs/ "/usr/share/otrs/bin/cgi-bin/"
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/share/otrs/var/httpd/htdocs/
ServerSignature On
<Location /otrs/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
PerlSetupEnv On
Options +ExecCGI
</Location>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /usr/share/otrs/var/httpd/htdocs/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
RedirectMatch ^/$ http://soporte.valmesa.net/otrs/Customer.pl
</Directory>
# Allowed values: debug, info, notice, warn, error, crit, alert, emerg
LogLevel warn
ErrorLog /var/log/apache2/otrs-err.log
CustomLog /var/log/apache2/otrs-acc.log combined
</VirtualHost>
<VirtualHost agentes.valmesa.net>
DocumentRoot /usr/share/otrs/var/httpd/htdocs/
<Directory /usr/share/otrs/var/httpd/htdocs/>
RedirectMatch ^/$ http://soporte.valmesa.net/otrs/index.pl
</Directory>
</VirtualHost>
<VirtualHost faq.valmesa.net>
DocumentRoot /usr/share/otrs/var/httpd/htdocs/
<Directory /usr/share/otrs/var/httpd/htdocs/>
RedirectMatch ^/$ http://soporte.valmesa.net/otrs/faq.pl
</Directory>
</VirtualHost>
[---]
This has worked for me with OTRS v1.3.2, mod_perl and Apache2. You get
what you want, but it changes the URL in the browser. This config is a bit too
big, but
the key is that you define all the details for OTRS in a "main" virtual host
(soporte.valmesa.net) and then you define as many virtual host as you need and
redirect them to the URL you need inside OTRS "main" virtual host. BTW, this is
all in a
file called "soporte.valmesa.net.conf" that is included from apache.conf...
Regards,
On 3 Oct 2005 at 10:25, Stefansen Espen wrote:
> Hi
>
> I'm trying to get otrs to work with virtual hosting on Linux. But so
> far i've been unsuccesful. Here's an example of what i want: -
> helpdesk.example.org -> customer.pl - admin.example.org -> index.pl -
> faq.example.org -> faq.pl
>
> Have anyone tried this and made it work? I've tried various things in
> my httpd.conf, but none seem to work. I'll be happy with any help.
>
> Regards
> Espen Stefansen
> Institute of Marine Research
---
Victor R. Rodriguez
Departamento de Sistemas
Valoraciones del Mediterraneo, S.A.
---
_______________________________________________
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
Support oder Consulting für Ihr OTRS System?
=> http://www.otrs.de/