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

Support internal locations #340

Closed
jarshwah opened this issue Jun 17, 2014 · 2 comments
Closed

Support internal locations #340

jarshwah opened this issue Jun 17, 2014 · 2 comments

Comments

@jarshwah
Copy link

To use sendfile (http://wiki.nginx.org/X-accel) one has to have a location that looks like:

  location /protected {
    internal;
    alias /path/to/protected/files;
  }

The problem is that I can't find a way to set the "internal" directive. I tried:

  vhost_protected:
    location: '/protected'
    location_alias: '/path/to/protected/files'
    vhost: 'vhost'
    location_cfg_prepend:
      internal: ''

But I believe the empty value for internal means it's just not getting rendered in the template. Am I doing something wrong, or is having empty values an oversight?

@rabbitt
Copy link
Contributor

rabbitt commented Jun 25, 2014

@jarshwah can you give the new functionality added in #351 a try and, if it suits your needs, close this ticket ?

@3flex
Copy link
Contributor

3flex commented Apr 10, 2015

The PR looked good, I'm going to assume this can be closed. @jarshwah let us know if there's anything else you need here.

@3flex 3flex closed this as completed Apr 10, 2015
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

No branches or pull requests

3 participants