httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RuneImp" <r...@imptech.net>
Subject Re: CGI-BIN & Perl scripts
Date Fri, 25 Jan 2002 12:34:18 GMT
Your missing a quote & a semicolon. It should be

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<HTML><BODY>bla bla</BODY></HTML>";


-=- RuneImp
ImpTech - Web Design, Hosting & Computer Tech
http://imptech.net
rune@imptech.net


----- Original Message ----- 
From: "TD - Sales International Holland B.V." <td@salesint.com>
To: <users@httpd.apache.org>
Sent: Friday, January 25, 2002 4:21 AM
Subject: CGI-BIN & Perl scripts


Hey there,

I made a simple perl script like this:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<HTML><BODY>bla bla</BODY></HTML>

file is name test.pl, permissions
-rwxr-xr-x root, root, other
./test.pl works as expected
in httpd.conf:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<Directory "/var/www/cgi-bin">
  AllowOverride None
  Options None
  Order Allow,Deny
  Allow from all
</Directory>

when going to
http://myserver/cgi-bin/test.pl
I just get the contents of the file, also html files can be served from the 
directory (although it doesn't recognize index files 
(myserver.tld/cgi-bin/index.html will show the index file but 
myserver.tld/cgi-bin/ will give no such file or directory). I was under the 
assumption anything in a scriptalias directory would be executed but it 
doesn't look like it....

Any ideas?

Kind regards

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message