toash
2005-11-09 12:00:10 UTC
Hi all,
first off excuse my undoubted ignorance, but I'm new to perl...
the problem I have is I can run a script successfully from my server
console, but when I try & execute it from my browser I get a 404 page not
found. The script runs successfully on the server from the sys:/perl/scripts
folder. This isn't what my httpd.conf indicates the script folder to be,
please see below for excerpt of file. The script doesn't work if placed in
the apache cgi-bin folder or the perl/web folder. There are no entries
created in the Apache error log when I try to execute the script.
Hope someone can help, thanks
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the
client.
# The same rules about trailing "/" apply to ScriptAlias directives as
to
# Alias.
#
ScriptAlias /cgi-bin/ "sys:/apache/cgi-bin/"
#
# "sys:/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "sys:/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
LoadModule lcgi_module modules/mod_lcgi.nlm
<IfModule mod_lcgi.c>
AddHandler lcgi-script .nlm .pl .nsn .bas
LCGIModuleMap sys:\perl\lcgi\cgi2perl.nlm .pl /perl
AddEnvVar PERL_ROOT sys:\perl\web
ScriptAlias /perl sys:/perl/web
</IfModule>
NW6 SP3
Perl 5.8.0
Apache 1.03
eDir 8.7
first off excuse my undoubted ignorance, but I'm new to perl...
the problem I have is I can run a script successfully from my server
console, but when I try & execute it from my browser I get a 404 page not
found. The script runs successfully on the server from the sys:/perl/scripts
folder. This isn't what my httpd.conf indicates the script folder to be,
please see below for excerpt of file. The script doesn't work if placed in
the apache cgi-bin folder or the perl/web folder. There are no entries
created in the Apache error log when I try to execute the script.
Hope someone can help, thanks
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the
client.
# The same rules about trailing "/" apply to ScriptAlias directives as
to
# Alias.
#
ScriptAlias /cgi-bin/ "sys:/apache/cgi-bin/"
#
# "sys:/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "sys:/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
LoadModule lcgi_module modules/mod_lcgi.nlm
<IfModule mod_lcgi.c>
AddHandler lcgi-script .nlm .pl .nsn .bas
LCGIModuleMap sys:\perl\lcgi\cgi2perl.nlm .pl /perl
AddEnvVar PERL_ROOT sys:\perl\web
ScriptAlias /perl sys:/perl/web
</IfModule>
NW6 SP3
Perl 5.8.0
Apache 1.03
eDir 8.7