Re: [users@httpd] Apache2 Action/Handler problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/1/05, Jean-Marc Jacquot <jean-marc.jacquot@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux