Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown directive "vod_moov_cache" #739

Closed
Tinywan opened this issue Nov 22, 2017 · 2 comments
Closed

unknown directive "vod_moov_cache" #739

Tinywan opened this issue Nov 22, 2017 · 2 comments

Comments

@Tinywan
Copy link

Tinywan commented Nov 22, 2017

success

        server {
            listen 8383;
            vod_mode local;
            vod_last_modified 'Thu, 31 Dec 2015 02:00:00 UTC';
            vod_last_modified_types *;

            #vod_moov_cache moov_cache 512m;
            #vod_response_cache response_cache 128m;

            #file handle caching / aio
            open_file_cache max=1000 inactive=5m;
            open_file_cache_valid 2m;
            open_file_cache_min_uses 1;
            open_file_cache_errors on;
            aio on;

            location ~ ^/videos/ {
                root /home/www/ffmpeg/;
                vod hls;

                add_header Access-Control-Allow-Headers '*';
                add_header Access-Control-Expose-Headers 'Server,range,Content-Length,Content-Range';
                add_header Access-Control-Allow-Methods 'GET, HEAD, OPTIONS';
                add_header Access-Control-Allow-Origin '*';
                expires 100d;
            }
        }

error

        server {
            listen 8383;
            vod_mode local;
            vod_last_modified 'Thu, 31 Dec 2015 02:00:00 UTC';
            vod_last_modified_types *;

            vod_moov_cache moov_cache 512m;
            vod_response_cache response_cache 128m;

            #file handle caching / aio
            open_file_cache max=1000 inactive=5m;
            open_file_cache_valid 2m;
            open_file_cache_min_uses 1;
            open_file_cache_errors on;
            aio on;

            location ~ ^/videos/ {
                root /home/www/ffmpeg/;
                vod hls;

                add_header Access-Control-Allow-Headers '*';
                add_header Access-Control-Expose-Headers 'Server,range,Content-Length,Content-Range';
                add_header Access-Control-Allow-Methods 'GET, HEAD, OPTIONS';
                add_header Access-Control-Allow-Origin '*';
                expires 100d;
            }
        }

Error Msg

sudo ../../sbin/nginx -s reload
nginx: [emerg] unknown directive "vod_moov_cache" in /usr/local/openresty/nginx/conf/vhost/nginx.vod.module.conf:7
@erankor
Copy link
Contributor

erankor commented Nov 22, 2017

This directive was renamed long time ago -
https://github.com/kaltura/nginx-vod-module/blob/0197ebb421612ec2f0b2ddd45f4032d1571a2d8b/CHANGELOG.md#20160203---added-support-for-matroska-container

You need to use vod_metadata_cache instead.

@Tinywan
Copy link
Author

Tinywan commented Nov 22, 2017

@erankor Thanks!

@Tinywan Tinywan closed this as completed Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants