How to define a second nginx location clause inside a puppet vhost? How to define a second nginx location clause inside a puppet vhost? nginx nginx

How to define a second nginx location clause inside a puppet vhost?


with nginx::resource::location definition:

node 'web00' {    class { 'nginx': }    nginx::resource::upstream { 'backend_nodejs':        members => [            'localhost:9000',        ],    }    nginx::resource::vhost { 'myapp.example.com':        proxy => 'http://backend_nodejs'    }    nginx::resource::location { '/admin':      location => '/admin/',      vhost => 'myapp.example.com',      location_alias => '/path/to/my/app/'      index_files => ['index.html']    }    }