我正在尝试向 nginx.conf 添加两个简单的东西,它们工作正常,直到我在 ELB 上部署一个新版本,这是预期的,所以我知道我需要使用 .ebextensions 来执行此操作,但我要么收到一条错误消息“null模板中不允许使用值”或者它不起作用。
这是我在 /.ebextensions/custom.config 中的文件
files:
"/etc/nginx/conf.d/000_my_config.conf":
content: |
client_max_body_size 100M;
server {
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}
}
只需尝试更改最大上传大小并添加位置信息以使用 Wordpress