Videos not working after migration

Videos not working after migration

by Jakob AEvarsson -
Number of replies: 1

I'm using moodle 3.5.

My server is running
Debian 9.5
nginx 1.10.3
mysql (5.5.5-10.1.26-MariaDB-0+deb9u1)
PHP 7.2.10-1+0~20181001133118.7+stretch~1.gbpb6e829

Debugging shows nothing.

I am migrating to a self managed VPS. The site functions correctly on the old shared server.

I get this error message:
The media could not be loaded, either because the server or network failed or because the format is not supported.


in console I get this error:
HTTP load failed with status 404. Load of media resource

failed.

mime.types has the line:
video/mp4 mp4;

I'm a novice in linux and self hosting in general so I could be missing something obvious.

Thanks for the help,
Kobbi

Average of ratings: -
In reply to Jakob AEvarsson

Re: Videos not working after migration

by Jakob AEvarsson -
nevermind, I found out it was because of incorrect settings in the nginx config file