U
Ulrich Mueller
Hallo,
I've a NPH perl CGI under apache
let's say `nph-test.cgi`:
#!/usr/bin/perl
print "HTTP/1.1 200 OK\nContent-Type: text/html\n\nHALLO\n";
print "we're ".(exists $ENV{MOD_PERL}?"":"NOT ")."under mod_perl";
1;
and want to rename it to `hallo`
without `nph-` prefix.
What possibilities I have to tell apache,
that this is still an nph script,
either with mod_perl or not,
via (preferably) changing code itself or local .htaccess
(so ScriptAlias doesn't work),
I tried a lot, $|=1, symbolic links, or
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlSendHeader Off
PerlOptions -ParseHeaders
Options +ExecCGI
or
RewriteEngine On
RewriteBase /cgi-bin
RewriteRule ^hallo$ nph-test.cgi
or searching the web, no succeeding until now
Thanks for your help,
Ulrich
I've a NPH perl CGI under apache
let's say `nph-test.cgi`:
#!/usr/bin/perl
print "HTTP/1.1 200 OK\nContent-Type: text/html\n\nHALLO\n";
print "we're ".(exists $ENV{MOD_PERL}?"":"NOT ")."under mod_perl";
1;
and want to rename it to `hallo`
without `nph-` prefix.
What possibilities I have to tell apache,
that this is still an nph script,
either with mod_perl or not,
via (preferably) changing code itself or local .htaccess
(so ScriptAlias doesn't work),
I tried a lot, $|=1, symbolic links, or
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlSendHeader Off
PerlOptions -ParseHeaders
Options +ExecCGI
or
RewriteEngine On
RewriteBase /cgi-bin
RewriteRule ^hallo$ nph-test.cgi
or searching the web, no succeeding until now
Thanks for your help,
Ulrich