R
rminnis82
I am not sure if this is a Perl or MS IIS 6.0 issue, but I have a
page.pl sitting on a webserver. The perl script connects to a MS SQL
Server 2005 database on teh same server. The ODBC is all setup and
working.
I have the perl script setup in IIS as a virtual directory in Default
Website AND under a new Website with host headers.
With the virtual directory, if I type http://[external
IP]/DOMAIN/page.pl, the page loads and shows all the data taken frm the
SQL database.
With the new website, if I type test.domain.com/page.pl, I get a
message saying:
Software error:
Cannot connect to db Domain
For help, please send mail to this site's webmaster, giving this error
message and the time and date of the error.
This is my code to connec to the DB:
my $dbh = DBI->connect("dbi:ODBComain") ||
die "Cannot connect to db Domain\n";
$dbh->{AutoCommit} = 0;
$dbh->{RaiseError} = 1;
$dbh->{LongReadLen} = 1024;
I am running Perl using this installer:
ActivePerl-5.8.3.809-MSWin32-x86.msi
Can anyone see where I might be going wrong? Or is it just not feasible
to get access to page.pl using host headers.
Thanks in Advance.
page.pl sitting on a webserver. The perl script connects to a MS SQL
Server 2005 database on teh same server. The ODBC is all setup and
working.
I have the perl script setup in IIS as a virtual directory in Default
Website AND under a new Website with host headers.
With the virtual directory, if I type http://[external
IP]/DOMAIN/page.pl, the page loads and shows all the data taken frm the
SQL database.
With the new website, if I type test.domain.com/page.pl, I get a
message saying:
Software error:
Cannot connect to db Domain
For help, please send mail to this site's webmaster, giving this error
message and the time and date of the error.
This is my code to connec to the DB:
my $dbh = DBI->connect("dbi:ODBComain") ||
die "Cannot connect to db Domain\n";
$dbh->{AutoCommit} = 0;
$dbh->{RaiseError} = 1;
$dbh->{LongReadLen} = 1024;
I am running Perl using this installer:
ActivePerl-5.8.3.809-MSWin32-x86.msi
Can anyone see where I might be going wrong? Or is it just not feasible
to get access to page.pl using host headers.
Thanks in Advance.