I have the same issue as 404 and the answers is correct and when I add
location / {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
The problem is solved. How can I do such a thing in .ebextensions?
I have the same issue as 404 and the answers is correct and when I add
location / {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
The problem is solved. How can I do such a thing in .ebextensions?
To customize nginx on Amazon Linux 2 you should use .platform/nginx/conf.d/
, not .ebextensions. The
.ebextensions` were used for Amazon Linux 1.
The AWS docs provide an example of how to add configuration options to nginx:
~/workspace/my-app/
|-- .platform
| `-- nginx
| `-- conf.d
| `-- myconf.conf