You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "KIVES,BRUCE (HP-USA,ex1)" <br...@hp.com> on 2003/03/19 20:04:31 UTC
Hiding the .pl
I have recently updated from Apache 1.3.23? to 1.3.27. Things are behaving
differently, and I think the problem lies with mod_speling. Previously, if
there was only one possible choice for a misspelled URL, it would just
redirect it without asking. Now it asks every time.
I used this feature to hide the fact that I was using a Perl program. For
example: http://url/calendar/month/042003.htm called month.pl with
PATH_INFO=/042003.htm, but to the browser it looked like there was a
directory /month with a pile of static pages. I have several file.htm.pl
that are called with file.htm and it worked fine.
Was there a change in mod_speling, or has something else happened? I don't
think it is in the configuration. I copied over the old httpd.conf and after
one or two minor changes, restarted Apache with the same problem.
Is there another way of hiding the fact that I'm using a Perl program? If I
rename the program from month.pl to month, it displays the program instead
of executing it. The permissions are 755. I don't want to copy everything
into /cgi-bin, because I do have some static .html in the same directory,
which it then tries to execute.
Any other ideas on how to hide the .pl ?
OS revision:
HP-UX 11.11
>From the error log:
HP Apache-based Web Server/1.3.27 (Unix) ApacheJServ/1.1.1 PHP/4.2.2
mod_perl/1.27 configured
-- resuming normal operations
Thanks in advance,
Bruce Kives
[OT] Re: Hiding the .pl
Posted by Robert Landrum <rl...@aol.net>.
You might want to consider downloading the 1.3.23 source for mod_speling and
using diff to see if they changed something. It might be something simple
that can be changed and patched. You also might be able to use the mod_speling
from 1.3.23 in 1.3.27 without any problem.
Given the relative simplicity of redirecting, I have to imagine that the
apache API didn't change very much in that regard.
Rob
On Wed, Mar 19, 2003 at 02:04:31PM -0500, KIVES,BRUCE (HP-USA,ex1) wrote:
>
> I have recently updated from Apache 1.3.23? to 1.3.27. Things are behaving
> differently, and I think the problem lies with mod_speling. Previously, if
> there was only one possible choice for a misspelled URL, it would just
> redirect it without asking. Now it asks every time.
>
> I used this feature to hide the fact that I was using a Perl program. For
> example: http://url/calendar/month/042003.htm called month.pl with
> PATH_INFO=/042003.htm, but to the browser it looked like there was a
> directory /month with a pile of static pages. I have several file.htm.pl
> that are called with file.htm and it worked fine.
>
> Was there a change in mod_speling, or has something else happened? I don't
> think it is in the configuration. I copied over the old httpd.conf and after
> one or two minor changes, restarted Apache with the same problem.
>
> Is there another way of hiding the fact that I'm using a Perl program? If I
> rename the program from month.pl to month, it displays the program instead
> of executing it. The permissions are 755. I don't want to copy everything
> into /cgi-bin, because I do have some static .html in the same directory,
> which it then tries to execute.
>
> Any other ideas on how to hide the .pl ?
>
> OS revision:
> HP-UX 11.11
> >From the error log:
> HP Apache-based Web Server/1.3.27 (Unix) ApacheJServ/1.1.1 PHP/4.2.2
> mod_perl/1.27 configured
> -- resuming normal operations
>
> Thanks in advance,
> Bruce Kives
--
Robert Landrum
Systems Programmer
Re: Hiding the .pl
Posted by Perrin Harkins <pe...@elem.com>.
KIVES,BRUCE (HP-USA,ex1) wrote:
> Any other ideas on how to hide the .pl ?
There are dozens of ways to make /calendar/month run month.pl. Here are
some simple ones:
- mod_rewrite
- Alias
- DirectoryIndex month.pl
You could also turn month.pl into a handler and just do this:
<Location /calendar/month>
SetHandler perl-script
PerlHandler Month
</Location>
- Perrin
Re: Hiding the .pl
Posted by Magnus Bodin <ma...@bodin.org>.
On Wed, Mar 19, 2003 at 02:04:31PM -0500, KIVES,BRUCE (HP-USA,ex1) wrote:
>
> Any other ideas on how to hide the .pl ?
I usually use mod_rewrite.
The swiss-army-knife for URL-polishing.
/magnus
--
http://x42.com