Make customer.pl default page

Moderator: crythias

Locked
yumfreek
Znuny newbie
Posts: 2
Joined: 19 Aug 2011, 03:44
Znuny Version: 3

Make customer.pl default page

Post by yumfreek »

Hello,

I have searched extensively for an answer to this question and have gotten close, but not quite. My setup is this: Apache2 with otrs 3 on Linux

Prior to today I had never heard of OTRS, and I don't have much experience with Apache either. I was told that we need to shorten the url's length, getting rid of having to type anything past .com. No /index.pl or anything.


The urls on the left need to redirect to the urls on the right

Original Agent's Url = help.mydomain.com/otrs/index.pl -> help.mydomain.com/agent
Original Customer's Url = help.mydomain.com/otrs/customer.pl -> help.mydomain.com (no /customer or anything, just the domain name)

I resolved the Agent's problem by adding this to /etc/apache2/conf.d/otrs.conf

Code: Select all

Alias /agent "/opt/otrs/var/httpd/htdocs/"

Now I'm stuck at making just the domain name redirect to /otrs/customer.pl Currently help.mydomain.com goes to /otrs/index.pl

The closest threads I found were these, but I don't really understand them

http://forums.otrs.org/viewtopic.php?f=60&t=9329

http://forums.otrs.org/viewtopic.php?f=36&t=2094

Can anyone help?
yumfreek
Znuny newbie
Posts: 2
Joined: 19 Aug 2011, 03:44
Znuny Version: 3

Re: Make customer.pl default page

Post by yumfreek »

Got it.

I was confused why there wasn't an entry in apache2.conf for a VirtualHost... Apparently /etc/apache2/conf.d/otrs.conf is the "VirtualHost" config section...

All I had to do was add this to the otrs.conf file right under the Aliases at the top of the file.

Code: Select all

RedirectMatch ^/agent$ http://help.mydomain.com/otrs/index.pl
RedirectMatch ^/agent/$ http://help.mydomain.com/otrs/index.pl
RedirectMatch ^/$ http://help.mydomain.com/otrs/customer.pl
RedirectMatch  ^(?!/(otrs|otrs-web)/(js|skins|index|customer|faq|json|rpc)) https://help.mydomain.com/otrs/customer.pl //I don't think this is necessary
Restart apache and I was good to go...
Locked