On Sat, 25 Oct 2003, Stas Bekman wrote: > Angela wrote: > > Hi, > > > > I'm using Apache with Mod_Perl configured on a win XP box. > > Perl scripts prepare WML cards to return to a CGI request. This works fine > > if requests come from mobile phones. > > However, if I type the url into my HTML web browser pointing to a perl > > script that expects WML to call it, the script, (that is the perl code > > itself, not the output from the script), gets sent back to the requestor for > > saving!! > > > > I really don't want to lose my code this way! > > I have this in my perl.conf file:- > > > > Alias /perl/ "C:/Apache2/perl/ > > Don't you have a typo above? " is not closed. > > > <Location /perl> > > SetHandler perl-script > > PerlResponseHandler ModPerl::Registry > > Options +ExecCGI > > PerlOptions +ParseHeaders > > </Location> > > > > What can I do to stop files with a *.pl mask being returned to a user? > > Make sure that later on in httpd.conf you aren't > redefining /perl to be handled by the default handler. > e.g. try to move the above config to the very end of > httpd.conf.
If you're still having problems after trying that, you might try making sure that a Windows file association with .pl files isn't the cause. Try renaming the script from, eg, "testing.pl" to just "testing" to see if that helps. -- best regards, randy kobes