“config.yaml”文件中的示例:
locations:
...
some_location_root:
location: /
try_files:
- $uri
- '@rwr'
some_location_rewrite:
location: '@rwr'
rewrite: '^(.*) /index.php?_controller=$1 last'
...
我在这里找到了解决方案: https ://github.com/jfryman/puppet-nginx/blob/master/spec/defines/resource_location_spec.rb
rewrite: '^(.*) /index.php?_controller=$1 last'
应该看起来像:
rewrite_rules: ['^(.*) /index.php?_controller=$1 last']