Skip to content

Conversation

pyh
Copy link

@pyh pyh commented Apr 17, 2011

Allow variables for "mogilefs_domain", also make the directive mandatory.

Config example:

location ~ ^/(?<domain>[\w.]+)/(?<class>[\w.]+/(?<key>.+)$ {
    mogilefs_tracker 127.0.0.1:7001;
    mogilefs_methods GET PUT DELETE;
    mogilefs_domain $domain;
    mogilefs_class $class;

    mogilefs_pass $key {
        proxy_pass $mogilefs_path;
        proxy_hide_header Content-Type;
        proxy_buffering off;
    }
}

Pyry Hakulinen and others added 2 commits June 12, 2014 16:22
…ory.

Example configuration:

location ~ ^/(?<domain>[^/]+)/(?<class>[^/]+)/(?<key>.+)$ {
    mogilefs_tracker 127.0.0.1:7001;
    mogilefs_domain $domain;
    mogilefs_methods GET PUT DELETE;
    mogilefs_class $class;

    mogilefs_pass $key {
        proxy_pass $mogilefs_path;
        proxy_hide_header Content-Type;
        proxy_buffering off;
    }
}
They're especially nasty with -Werror.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants