Add direct_proxy configuration variable to allow bypassing try_files #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request aims to fix Issue #13:
direct_proxy
variable is introduced. When it is set to the name of an upstream, it causes ALL requests to be proxied to that upstream (so there is notry_files
directive). This is preferable totry_files
when the upstream is meant to handle all requests (for example, when proxying to an Apache server that handles its own static files).In the process I moved some proxy configuration to
/etc/nginx.conf.d/common_proxy.conf
to reduce clutter.(Nick, I know you're currently working on a revamp of this role. I'm mostly posting this for anybody else who is using this role, and to give you ideas while you work on the new version.)