Django - Не найден поддерживаемый видео формат и тип MIME

Когда я запускаю python manage.py runserver видео на веб-странице работает.

Я развернул веб с помощью apache2 и вместо видео я вижу No video with supported format and MIME type found.

Можно ли что-то упустить при развертывании веб-страницы? Когда я развернул его в первый раз, он работал, но теперь он не работает.

Вот мой /etc/apache2/sites-available/001-default.conf

<VirtualHost *:80>
    # The ServerName directive sets the request scheme, hostname and port that
    # the server uses to identify itself. This is used when creating
    # redirection URLs. In the context of virtual hosts, the ServerName
    # specifies what hostname must appear in the request's Host: header to
    # match this virtual host. For the default virtual host (this file) this
    # value is not decisive as it is used as a last resort host regardless.
    # However, you must set it for any further virtual host explicitly.
    #ServerName www.example.com
        
    ServerName video.xyz.com
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf
        
        Alias /static /home/pd/pd_videowebapp/static
    <Directory /home/pd/pd_videowebapp/static>
          Require all granted
    </Directory>

        Alias /media /home/pd/pd_videowebapp/media
    <Directory /home/pd/pd_videowebapp/media>
          Require all granted
    </Directory>
        
        <Directory /home/pd/pd_videowebapp/mysite>
          <Files wsgi.py>
        Require all granted
      </Files>
        </Directory>
        
        WSGIDaemonProcess django-app2 python-path=/home/pd/pd_videowebapp python-home=/home/pd/pd_videowebapp/env lang='en_US.UTF-8' locale='en_US.UTF-8'
    WSGIProcessGroup django-app2
        WSGIScriptAlias / /home/pd/pd_videowebapp/mysite/wsgi.py
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Вернуться на верх