-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
location if statement #713
Comments
|
@mnothic: did the proposed solution work for you? Can this be closed? |
I am having a similiar issue. I have the following code:
This codes not work, because the plugin adds a ; after the statement, which nginx does not swallow. I think a new option, something like 'custom_directives' would be usefull, where one can define configuration statements that are simply added without any additional parsing (eg. adding a ; at the end). |
Hello I need put into a location an if statement like this
if $x-forwarded-proto = 'https' {
proxy_pass https://backend
}
else {
proxy_pass http://backend
}
some idea how I can achive this feature with this module?
The text was updated successfully, but these errors were encountered: