0

i installed otrs successfully all are working fine but i have to set an simple name instead of OTRS URL in RED HAT 6 operating System. I'm new to RHEL and i dont know how to set the virtual host.

http://ipaddress/otrs/index.pl to simple name service.local

http://ipaddress/otrs/customer.pl to again simple name responce.local

in WAN (private area network). i required just like above please guys help me to set the virtual host.

Thanks advance,

Regards GK

2 Answers 2

0

Here is documentation for apache httpd how to make virtual hosts

10
0

I managed to set up OTRS as a virtualhost - so you can enter as url only otrs.domain.com.

This is how I've done it:

<VirtualHost *:80>
  ServerName otrs.domain.com
  DocumentRoot "/opt/otrs/bin/cgi.bin/"
  DirectoryIndex index.pl
  Alias /otrs-web/ "opt/otrs/var/httpd/htdocs/"
  <Location "/otrs-web/">
    SetHandler default-handler
  </Location>
</Virtualhost>

In the apache otrs.conf you need to edit everything that has /otrs/xxxxx to /xxxxx

Logic behind it is - in normal apache configuration you need to say which folder is your cgi folder. Well, if you set up a root folder as your cgi folder, everything in that subfolder will be considered as script and you won't be able to get any other file. In this example: any .css, .png etc. That's why you need to tell apache that /otrs-web location is set as default-handler and not script-handler.

Works like a charm ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .