mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 08:23:31 +08:00
@@ -38,7 +38,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
location @rewrite {
|
||||||
rewrite ^/(.*)$ /index.php?q=$1;
|
rewrite ^ /index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^(/[a-z\-]+)?/system/files/ { # For Drupal >= 7
|
location ~ ^(/[a-z\-]+)?/system/files/ { # For Drupal >= 7
|
||||||
@@ -80,6 +80,7 @@ server {
|
|||||||
|
|
||||||
location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|ico|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
|
location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|ico|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
|
||||||
add_header Access-Control-Allow-Origin "*";
|
add_header Access-Control-Allow-Origin "*";
|
||||||
|
try_files $uri @rewrite;
|
||||||
expires max;
|
expires max;
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
@@ -87,4 +88,4 @@ server {
|
|||||||
if (-f $request_filename) {
|
if (-f $request_filename) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user