small vhost adjustments
This commit is contained in:
parent
22754f9bf9
commit
58af39e619
@ -1,3 +1,3 @@
|
|||||||
* BUGFIX
|
* BUGFIX
|
||||||
* fix port in healthcheck script
|
* fix port in healthcheck script
|
||||||
* use a more strict vhost
|
* small vhost adjustments
|
||||||
|
@ -9,20 +9,13 @@ server {
|
|||||||
try_files $uri $uri/ /index.php$is_args$args;
|
try_files $uri $uri/ /index.php$is_args$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /plugins/.*/Assets/ {
|
error_page 404 = @notfound;
|
||||||
allow all;
|
|
||||||
|
location @notfound {
|
||||||
|
return 301 /;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /(app|data|libs|plugins|vendor|cli) {
|
location ~ /(cli|data) {
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* ^.+\.(log|sqlite)$ {
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /\.ht {
|
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,6 +28,14 @@ server {
|
|||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~* ^.+\.(log|sqlite)$ {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /\.ht {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
location ~* ^.+\.(ico|jpg|gif|png|css|js|svg|eot|ttf|woff|woff2|otf)$ {
|
location ~* ^.+\.(ico|jpg|gif|png|css|js|svg|eot|ttf|woff|woff2|otf)$ {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
expires 7d;
|
expires 7d;
|
||||||
|
Reference in New Issue
Block a user