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;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue