Skip to content

Commit

Permalink
Update nginx-subdir.conf.sample
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Perschon <tofuSCHNITZEL@users.noreply.github.com>
  • Loading branch information
tofuSCHNITZEL authored Aug 29, 2024
1 parent 6d69306 commit 9e86b7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions admin_manual/installation/nginx-subdir.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ server {
location ~ ^/nextcloud/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/) { return 404; }
location ~ ^/nextcloud/(?:\.|autotest|occ|issue|indie|db_|console) { return 404; }

# Hide grunt, package files
location ~* (Gruntfile|package)\.(js|json|jsonc)$ {
return 404;
}

# Hide all composer files
location ~* composer\. {
return 404;
}

# Ensure this block, which passes PHP files to the PHP process, is above the blocks
# which handle static assets (as seen below). If this block is not declared first,
# then Nginx will encounter an infinite rewriting loop when it prepends
Expand Down

0 comments on commit 9e86b7c

Please sign in to comment.