"The requested URL /mythweb/mythweb.pl/pl/stream/2199/1399343400 was not found on this server."
Requesting just /mythweb/mythweb.pl
would download the PERL script, indicating that CGI wasn't working. To get it working, I needed to make the following changes:
-
sudo ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/cgi.load
-
In
/etc/apache2/mods-available/mime.conf
, add:AddHandler cgi-script .cgi .pl
After these changes and restarting apache2, downloading works just fine.
If you need to support H.264 media with the extension of .mp4
, then update the stream_raw.pl
file:
$ sudo vi /usr/share/mythtv/mythweb/modules/stream/stream_raw.pl
Add the follow section to the if
statement:
elsif ($basename =~ /\.mp4$/) {
$type = 'video/mpeg';
$suffix = '.mp4';
}