Align Nginx configuration with Apache2 .htaccess

As of: https://github.com/nextcloud/server/pull/27835

Signed-off-by: MichaIng <micha@dietpi.com>
This commit is contained in:
MichaIng
2021-07-09 13:19:35 +02:00
parent f08ed6c02e
commit 68d8d75d9f
2 changed files with 2 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ server {
fastcgi_request_buffering off;
}
location ~ \.(?:css|js|svg|gif)$ {
location ~ \.(?:css|js|svg|gif|png|jpg|ico)$ {
try_files $uri /index.php$request_uri;
expires 6M; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets

View File

@@ -131,7 +131,7 @@ server {
fastcgi_request_buffering off;
}
location ~ \.(?:css|js|svg|gif)$ {
location ~ \.(?:css|js|svg|gif|png|jpg|ico)$ {
try_files $uri /nextcloud/index.php$request_uri;
expires 6M; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets