Improve static files config
This commit is contained in:
parent
b9641c487e
commit
95c7a53827
@ -31,10 +31,12 @@ location ~* \.(?:css|js)$ {
|
|||||||
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
|
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
add_header Access-Control-Allow-Origin *;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Don't record access/error logs for robots.txt.
|
# Don't record access/error logs for robots.txt.
|
||||||
location = /robots.txt {
|
location = /robots.txt {
|
||||||
|
try_files $uri $uri/ /index.php?$args;
|
||||||
access_log off;
|
access_log off;
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user