Update rootfs/etc/nginx/nginx.conf
This commit is contained in:
parent
21865b2684
commit
173ee39e69
1 changed files with 6 additions and 4 deletions
|
@ -57,7 +57,7 @@ http {
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|
||||||
location / {
|
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
|
# Redirect server error pages to the static page /50x.html
|
||||||
|
@ -66,9 +66,11 @@ http {
|
||||||
root /var/lib/nginx/html;
|
root /var/lib/nginx/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/theme/.*\.(ico|jpg|jpeg|png|webp)$ {
|
location ^~ /theme/ {
|
||||||
root /var/www/html/public;
|
alias /var/www/html/public/theme/;
|
||||||
add_header Access-Control-Allow-Origin "*";
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||||
|
expires 30d;
|
||||||
|
access_log off;
|
||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue