diff --git a/conf/nginx.conf b/conf/nginx.conf index 297ec9f..edefb01 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -32,10 +32,6 @@ location __PATH__/ { deny all; } - location ~ ^__PATH__/var-.* { - deny all; - return 404; - } location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; diff --git a/scripts/_common.sh b/scripts/_common.sh index 88dd601..a9bf588 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -1,7 +1 @@ #!/bin/bash - -# Migrate files folder -find files -type f ! -name "*_count" | while read f; do bn="$(basename "$f")"; dst="files/${bn:0:8}/${bn:8:8}/${bn:16:8}/${bn:24:8}/"; mkdir -p "$dst"; mv "$f" "$dst" ; mv "${f}_count" "$dst"; done; find files -maxdepth 1 -type d -iname "?" -exec rm -rf {} \; - -# Migrate links folder -find links -type f | while read link; do bn="$(basename "$link")"; mkdir "links/$bn"; mv "$link" "links/$bn/"; done; find links -maxdepth 1 -type d -iname "?" -exec rm -rf {} \;