[英]How do I set up Nginx rewrite rules in a config file generated from PuPHPet?
Example from "config.yaml" file: “config.yaml”文件中的示例:
locations:
...
some_location_root:
location: /
try_files:
- $uri
- '@rwr'
some_location_rewrite:
location: '@rwr'
rewrite: '^(.*) /index.php?_controller=$1 last'
...
I found the solution here: https://github.com/jfryman/puppet-nginx/blob/master/spec/defines/resource_location_spec.rb 我在这里找到了解决方案: https : //github.com/jfryman/puppet-nginx/blob/master/spec/defines/resource_location_spec.rb
rewrite: '^(.*) /index.php?_controller=$1 last'
Should look like: 应该是这样的:
rewrite_rules: ['^(.*) /index.php?_controller=$1 last']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.