Strange URL...

Moderator: crythias

Post Reply
BigTex
Znuny newbie
Posts: 9
Joined: 20 Jul 2012, 21:16
Znuny Version: 3.1.7

Strange URL...

Post by BigTex »

Hi,
I have OTRS v3.1.7 installed on a Windows 2008 r2 server running IIS v7.5 and SQL Server 2008 R2. When you first visit the site, you land on a login page (index.pl).

"www.masterdomain.com/otrs/index.pl"

The strange behavior manifests itself once you successfully log in. After you log in, the page that you land on shows up in the address bar of the browser as:

"www.masterdomain.com//otrs/index.pl?"

Notice the "//otrs" in the url? The funny thing is that it does not affect the content of this page or functionality of the rest of the site at all. Once you navigate to any other page on the site after this first landing page the urls are all correct and show up as "/otrs" with a single forward slash.

Do you have any suggestions that might help solve this?

Thanks!
Production: OTRS 3.1.8 on Windows 2008 R2 Server, IIS v7.5, and SQL Server 2008 R2 database
QA/Test: OTRS 3.1.8 on Windows 2008 R2 Server, Apache, and MySQL database
FiL
Znuny newbie
Posts: 69
Joined: 13 Jul 2010, 18:02
Znuny Version: 2.4.7

Re: Strange URL...

Post by FiL »

Show your config.pm file pls
Dev
OTRS-Version: 3.1.7
System: Ubuntu Linux

Prod
OTRS-Version 3.0.9
System: Ubuntu Linux
BigTex
Znuny newbie
Posts: 9
Joined: 20 Jul 2012, 21:16
Znuny Version: 3.1.7

Re: Strange URL...

Post by BigTex »

Ok, Here you go...

# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2011 xxx, http://otrs.org/
# --
# $Id: Config.pm.dist,v 1.25 2011/09/16 10:58:28 mg Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
# Note:
#
# -->> OTRS does have a lot of config settings. For more settings
# (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator,
# LDAP, PostMaster, Session, Preferences, ...) see
# Kernel/Config/Defaults.pm and copy your wanted lines into "this"
# config file. This file will not be changed on update!
#
# --

package Kernel::Config;

use utf8;

sub Load {
my $Self = shift;
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# Start of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #

# ---------------------------------------------------- #
# database settings #
# ---------------------------------------------------- #
# DatabaseHost
# (The database host.)
$Self->{DatabaseHost} = '10.10.0.33';
# Database
# (The database name.)
$Self->{Database} = 'OTRS';
# DatabaseUser
# (The database user.)
$Self->{DatabaseUser} = 'OTRS-DB-User';
# DatabasePw
# (The password of database user. You also can use bin/otrs.CryptPassword.pl
# for crypted passwords.)
$Self->{DatabasePw} = 'BOLOGNA';
# DatabaseDSN
# (The database DSN for MySQL ==> more: "man DBD::mysql")
# $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";

# (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
# if you want to use a local socket connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
# if you want to use a tcpip connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";
# if you have PostgresSQL 8.1 or earlier, activate the legacy driver with this line:
# $Self->{DatabasePostgresqlBefore82} = 1;
$Self->{'DatabaseDSN'} = "DBI:ODBC:driver={SQL Server};Server=$Self->{DatabaseHost},1433;database=$Self->{Database}";
$Self->{'Database::Type'} = 'mssql';
# ---------------------------------------------------- #
# fs root directory
# ---------------------------------------------------- #
$Self->{Home} = 'd:/OTRS';

# ---------------------------------------------------- #
# insert your own config settings "here" #
# config settings taken from Kernel/Config/Defaults.pm #
# ---------------------------------------------------- #
# $Self->{SessionUseCookie} = 0;
# $Self->{CheckMXRecord} = 0;
$Self->{'LogModule'} = 'Kernel::System::Log::File';
$Self->{'LogModule::LogFile'} = "$Self->{Home}/var/log/otrs.log";
# ---------------------------------------------------- #

# ---------------------------------------------------- #
# data inserted by installer #
# ---------------------------------------------------- #
# $DIBI$

# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# End of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
}

# ---------------------------------------------------- #
# needed system stuff (don't edit this) #
# ---------------------------------------------------- #
use strict;
use warnings;

use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.25 $)[1];

use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');

# -----------------------------------------------------#

1;
Production: OTRS 3.1.8 on Windows 2008 R2 Server, IIS v7.5, and SQL Server 2008 R2 database
QA/Test: OTRS 3.1.8 on Windows 2008 R2 Server, Apache, and MySQL database
FiL
Znuny newbie
Posts: 69
Joined: 13 Jul 2010, 18:02
Znuny Version: 2.4.7

Re: Strange URL...

Post by FiL »

Your config looks alright.

The doubleslash shouldn´t be relevant because your apache fixes it I think, but I will keep on looking for a solution.
Maybe someone else has an idea

/e The only thing that comes in my mind is that you could have a look in apache2-httpd-new.include.conf in the OTRS/scripts/ directory
Dev
OTRS-Version: 3.1.7
System: Ubuntu Linux

Prod
OTRS-Version 3.0.9
System: Ubuntu Linux
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Strange URL...

Post by crythias »

Yeah, I'm thinking it's apache config or FQDN in SysConfig
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
BigTex
Znuny newbie
Posts: 9
Joined: 20 Jul 2012, 21:16
Znuny Version: 3.1.7

Re: Strange URL...

Post by BigTex »

I am not actually running Apache on our production server, we are running IIS v7.5 and SQL Server 2008 R2. We do have an Apache server that we use for testing and performance comparisons. This behavior does not manifest itself on the test server with Apache. This only seems to happen on our production server which is running IIS...
Production: OTRS 3.1.8 on Windows 2008 R2 Server, IIS v7.5, and SQL Server 2008 R2 database
QA/Test: OTRS 3.1.8 on Windows 2008 R2 Server, Apache, and MySQL database
badwurzach
Znuny newbie
Posts: 45
Joined: 07 Jan 2013, 21:02
Znuny Version: 6.x
Real Name: DW

Re: Strange URL...

Post by badwurzach »

Have anyone find a workaround / solution for this problem?
Aktuell: OTRS6 CE (GIT), Ubuntu 18.04 LTS (with KeyHelp)
telefonmann
Znuny newbie
Posts: 25
Joined: 26 Sep 2013, 09:25
Znuny Version: 3.2.11

Re: Strange URL...

Post by telefonmann »

Same problem exists for me.
Obviously it's not the only issue we experience in our pre-productive system, but it would be a start to fix this one.

So, if anyone found a solution for this, I'd be glad to here from you.
Specs in the sig.
OTRS 3.2.11 - ITSM 3.2.9
IIS; MySQL; Windows Server 2008R2

OTRS 3.3.2 - ITSM 3.3.2
IIS; MySQL; Windows Server 2008R2
badwurzach
Znuny newbie
Posts: 45
Joined: 07 Jan 2013, 21:02
Znuny Version: 6.x
Real Name: DW

Re: Strange URL...

Post by badwurzach »

We installed the new Release 3.3.2 today. After that i don't see the problem anymore.
Aktuell: OTRS6 CE (GIT), Ubuntu 18.04 LTS (with KeyHelp)
telefonmann
Znuny newbie
Posts: 25
Joined: 26 Sep 2013, 09:25
Znuny Version: 3.2.11

Re: Strange URL...

Post by telefonmann »

Same here.
OTRS 3.2.11 - ITSM 3.2.9
IIS; MySQL; Windows Server 2008R2

OTRS 3.3.2 - ITSM 3.3.2
IIS; MySQL; Windows Server 2008R2
Post Reply