CGI and NT Server

Harry Partridge h.partridge at lcpdt.linst.ac.uk
Wed Jun 18 13:54:42 EDT 1997


I hope somebody can help me with the following problem:

I am trying to configure our web server for CGI but something is going
wrong. It is a Windows NT Server 3.51 machine with Microsoft Internet
Information Server. Here is what I have done so far:

1. Created a scripts directory and an alias
2. Set the scripts directory to execute
3. Installed Perl 5 at the root of the C: drive
4. Created an association between .pl files and Perl.exe
5. Written a very simple Perl script and placed it in my scripts
directory.
6. Restarted the server

When I try to access the script from a web browser I get a 403 error.
I have tried both "http://www.myserver.com/scripts/scriptname.pl" and
"http://www.myserver.com/scripts/scriptname.pl?".

Have I missed something or is there a bug in IIS?

By the way, in case its the script that's causing the problem, here it
is:

print "Content-type:text/html\n\n";
print <<"EOF";
<HTML>
<HEAD><TITLE>Test Script</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>CGI Confirmation</H1>
This is a test script.
<HR>
</BODY>
</HTML>
EOF


More information about the Web4lib mailing list