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

Bypass proxy for static files #251

Closed
adriaant opened this issue Feb 4, 2014 · 1 comment
Closed

Bypass proxy for static files #251

adriaant opened this issue Feb 4, 2014 · 1 comment

Comments

@adriaant
Copy link

adriaant commented Feb 4, 2014

Is it already possible to create the following in the "location / {}" specification of a vhost? It is not clear to me.

        # Try to serve static files from nginx, no point in making an
        # *application* server like Unicorn/Rainbows! serve static files.
        if (!-f $request_filename) {
            proxy_pass http://foo_server;
            break;
        }
@adriaant adriaant closed this as completed Feb 6, 2014
@adriaant
Copy link
Author

adriaant commented Feb 6, 2014

Using a different way to config nginx with gunicorn. The above rule is not necessary if you use a 'root' config for static files.

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

1 participant