Browse Source

Fix the issue alias_traversal

Kayou 6 years ago
parent
commit
16a8fcd4e8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      conf/nginx.conf

+ 2 - 1
conf/nginx.conf

@@ -15,7 +15,8 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-location __PATH__ {
+#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
+location __PATH__/ {
 
   # Path to source
   alias __FINALPATH__/ ;