How can I play a video using the `<video>` tag from a CodeIgniter application?
Code:
<video controls = "true" autoplay style="width:100%">
<source type ="video/mp4" src="<?=base_url("/assets/media/12/upper.mp4")?>">
</video>
Full path of video:
var/www/html/project_name/application/www/assets/media
Apache gives me a forbidden, despite css/js serving from this directory with no issues. I've set the `.htaccess` in the `www` directory to `allow all` temporarily, and the issues persists.
Here is the exact entry from `error_log`(httpd):
Code:
Directory index forbidden by Options directive:
/var/www/html/records_v2/www/media/12/upper.mp4/, referer:
https://dev.site.com/controller/method
Here is some (relevant?) information from my `vhost` :
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Options FollowSymLinks
AllowOverride none
Order deny,allow
deny from all
allow from xx.xx.xx.xx #my IP here