Redirect to the Agent page by default

Moderator: crythias

Locked
hnascimento
Znuny newbie
Posts: 10
Joined: 26 Aug 2011, 12:06
Znuny Version: 2, 3
Real Name: Helder Nascimento
Company: e-Service

Redirect to the Agent page by default

Post by hnascimento »

Hi All, and Merry Xmas :)

I would like to make OTRS 3.0 to use the Agent login page by default, instead of the Customer one (our customers don't have access for the time being).

I've read some things, but I'm a bit confused on were to start, or what to change :S

Cheers!
OTRS 3.0.9 on Ubuntu 10.04 and MySql
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Redirect to the Agent page by default

Post by Wolfgangf »

you can use apache redirect and place your config into a .htaccess file
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
hnascimento
Znuny newbie
Posts: 10
Joined: 26 Aug 2011, 12:06
Znuny Version: 2, 3
Real Name: Helder Nascimento
Company: e-Service

Re: Redirect to the Agent page by default

Post by hnascimento »

Wolfgangf wrote:you can use apache redirect and place your config into a .htaccess file
Hum that's part of my problem, were is the apache config file on OTRS? I can see a httpd.conf on /etc/apache2, but it's empty... :S
OTRS 3.0.9 on Ubuntu 10.04 and MySql
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Redirect to the Agent page by default

Post by crythias »

For simplicity sake, I'd recommend putting an index.html with meta refresh in /var/www/htdocs or whatever your system's default root.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Redirect to the Agent page by default

Post by Wolfgangf »

crythias wrote:For simplicity sake, I'd recommend putting an index.html with meta refresh in /var/www/htdocs or whatever your system's default root.
also a good idea

I've done it with mod_rewrite and .htacces in the servers root direcotry looks like:

Code: Select all

order deny,allow
Allow from all
Options +FollowSymlinks
<IfModule mod_rewrite.c>
	RewriteEngine on
	#  hostname only -> Customer Login
	RewriteCond %{REQUEST_URI} ^.*/$
	RewriteRule ^.*$ https://<otrs_host.domain>/otrs/customer.pl [R]
	# Customer Login
	RewriteCond %{REQUEST_URI} ^.*/customer/?$
	RewriteRule ^.*$ https://<otrs_host.domain>/otrs/customer.pl [R]
	# Agent Login
	RewriteCond %{REQUEST_URI} ^.*/admin/?$
	RewriteRule ^.*$ https://<otrs_host.domain>/otrs/index.pl [R]
</IfModule>
crythias is right, a bit more complicated then his method; anyway, you can find a lot of documentation, for example http://www.elated.com/articles/mod-rewr ... beginners/
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Locked