Dot video

First, download video.php and put it at /var/www/z_video/video.php.

Second, add this to either your global apache configuration or anywhere apache allows it (in a <VirtualHost> for example) :

Alias /.video/ /var/www/z_video/video.php/
Action video-handler /.video virtual
AddHandler video-handler .video

To use it, put .video at the end of the URL :

http://log.philippe97.ca/video/drain.mp4.video

.htaccess

If you do not have access to the apache configuration files, it is possible to use an .htaccess file.

Place video.php in your document root and add this to your .htaccess file :

Action video-handler /video.php virtual
AddHandler video-handler .video