puppet-nginx icon indicating copy to clipboard operation
puppet-nginx copied to clipboard

conditional logic

Open Shattoww opened this issue 7 years ago • 1 comments

Is there a way to have something like this?

if ( $request_uri ~ ^/(.*)$ ) { proxy_pass http://myapp/myapp/$1; }

Shattoww avatar Nov 29 '17 23:11 Shattoww

https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/

Hopefully that helps ;)

Locations are already implementent. Else it should be able with one of these: $raw_prepend = undef, $raw_append = undef, $location_custom_cfg = undef, $location_cfg_prepend = undef, $location_cfg_append = undef, $location_custom_cfg_prepend = undef, $location_custom_cfg_append = undef,

TuningYourCode avatar Jan 02 '18 17:01 TuningYourCode