puppet-nginx
puppet-nginx copied to clipboard
conditional logic
Is there a way to have something like this?
if ( $request_uri ~ ^/(.*)$ ) { proxy_pass http://myapp/myapp/$1; }
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,