diff --git a/rootfs/etc/nginx/nginx.conf b/rootfs/etc/nginx/nginx.conf index 0cd423d..138ccfd 100644 --- a/rootfs/etc/nginx/nginx.conf +++ b/rootfs/etc/nginx/nginx.conf @@ -57,7 +57,7 @@ http { index index.php index.html; location / { - try_files $uri /index.php$is_args&$args; + try_files $uri /index.php$is_args$args; } # Redirect server error pages to the static page /50x.html @@ -66,9 +66,11 @@ http { root /var/lib/nginx/html; } - location ~ ^/theme/.*\.(ico|jpg|jpeg|png|webp)$ { - root /var/www/html/public; - add_header Access-Control-Allow-Origin "*"; + location ^~ /theme/ { + alias /var/www/html/public/theme/; + add_header 'Access-Control-Allow-Origin' '*' always; + expires 30d; + access_log off; try_files $uri =404; }