shifter480
Technical User
Hi,
I am having some trouble using a perl cgi script to perform some desired functionality. My code is as follows:
Options ExecCGI FollowSymLinks Includes MultiViews
RewriteEngine on
RewriteRule ^/NORTH_090518(.*) /C:/Projects/441/Source/nph-xredirect.cgi/$1 \
[T=application/x-httpd-cgi,L]
In my understanding this code should run my Perl cgi script which is as follows:
#!/tinyperl
#
# CGI program used to pipe data to BestInfoReplace.exe
#
# Print a message
print 'Hello world.';
$| = 1;
print $url = $ENV{'PATH_INFO'};
open FILE, ">URLPath.txt"
or die $!;
print FILE $url;
close FILE;
system("InfoReplace.exe");
If I run this from the command line it works.
However when I run this script from my application which uses apache it seems to redirect but says the page is forbidden:
HTTP 403 Forbidden
Any help would be greatly appreciated.
Thanks,
Joe
I am having some trouble using a perl cgi script to perform some desired functionality. My code is as follows:
Options ExecCGI FollowSymLinks Includes MultiViews
RewriteEngine on
RewriteRule ^/NORTH_090518(.*) /C:/Projects/441/Source/nph-xredirect.cgi/$1 \
[T=application/x-httpd-cgi,L]
In my understanding this code should run my Perl cgi script which is as follows:
#!/tinyperl
#
# CGI program used to pipe data to BestInfoReplace.exe
#
# Print a message
print 'Hello world.';
$| = 1;
print $url = $ENV{'PATH_INFO'};
open FILE, ">URLPath.txt"
or die $!;
print FILE $url;
close FILE;
system("InfoReplace.exe");
If I run this from the command line it works.
However when I run this script from my application which uses apache it seems to redirect but says the page is forbidden:
HTTP 403 Forbidden
Any help would be greatly appreciated.
Thanks,
Joe