httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Apache2 Action/Handler problem
Date Wed, 01 Jun 2005 17:21:16 GMT
On 6/1/05, Jean-Marc Jacquot <jean-marc.jacquot@investis.com> wrote:
> AddHandler pdf .pdf
> Action pdf /cgi-bin/handlepdf.pl
> 
> The expected result is that when you call an url pointing to a .pdf
> file, it call the handler the script instead of returning the file. BTW,
> the script is working fine when I call it directly so it's not that it's
> not recognised as Script.

What exactly happens when you try this?  What is in the error and access logs?

There is one notable difference in Action in 2.0: it won't map files
that don't exist.  If that is what you are trying to do, you should
instead use something like
AliasMatch .*\.pdf$ /usr/local/apache2/cgi-bin/handlepdf.pl

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message