[users@httpd] Stuck - bug#8431

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

 



--- Begin Message ---
Hi Everyone,

I've been stuck on this problem for some time:
http://issues.apache.org/bugzilla/show_bug.cgi?id=8431


After reading the bug report,  it states that the problem is fixed in
apache 2.1 (by adding the "virtual" option to the Action directive),
but I still am unable to figure out what to do to about Actions and
AddHandlers on virtual (i.e. non-existant) files under apache 2.0.X.
I am still stuck.

What I'm trying to do is accept request for files that end in mp3 or ogg,
as well as filenames such as "xxxxxx.mp3.ogg" to be handled by my
reencode.cgi script which knows from the extension whether or not to
cat the original file or, in the case of "xxxxxx.mp3.ogg" take the original
(existing) xxxxxx.mp3 file and reencode it to ogg vorbis (at a lower bitrate,
for example).

One possible solution mentioned in the bug report that I was unable to get
to work was to use ScriptAliasMatch,  such as in the following scenario:

  ScriptAliasMatch "\.(ogg|mp3)$" /cgi-bin/reencode.cgi

I was unable to get this to work.  Everything used to work fine under
apache 1.3 by doing:

  AddHandler music_file .mp3 .ogg
  Action music_file /cgi-bin/reencode.cgi

But alas,  I get a 404 error on files such as "xxxxxx.mp3.ogg" since it
does not map to an actual existing file.

Could someone please suggest a possible solution for apache 2.0.X?
It'd also be good to add this solution to the bug report and documentation.


Charlton

---------------------------------------------------------------------
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



--- End Message ---

[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