small vhost adjustments
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Robert Kaussow 2019-09-29 16:51:52 +02:00
parent 22754f9bf9
commit 58af39e619
2 changed files with 14 additions and 13 deletions

View File

@ -1,3 +1,3 @@
* BUGFIX
* fix port in healthcheck script
* use a more strict vhost
* small vhost adjustments

View File

@ -9,20 +9,13 @@ server {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ /plugins/.*/Assets/ {
allow all;
error_page 404 = @notfound;
location @notfound {
return 301 /;
}
location ~ /(app|data|libs|plugins|vendor|cli) {
deny all;
return 404;
}
location ~* ^.+\.(log|sqlite)$ {
return 404;
}
location ~ /\.ht {
location ~ /(cli|data) {
return 404;
}
@ -35,6 +28,14 @@ server {
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)$ {
log_not_found off;
expires 7d;