소스 검색

Fix .htaccess.dist for access to /scripts/vendor/ (#7598)

* Fix .htaccess.dist for access to /scripts/vendor/
fix https://github.com/FreshRSS/FreshRSS/issues/7596

* Exclude extensions folder, which may be mounted as volume without .htaccess
Alexandre Alapetite 1 년 전
부모
커밋
e24d9f39fb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      .htaccess.dist

+ 1 - 1
.htaccess.dist

@@ -7,6 +7,6 @@
 </FilesMatch>
 
 # Deny some sub-folders, which may not be excluded by their own .htaccess
-<If "%{REQUEST_URI} =~ m#/(bin|data|node_modules|vendor|\..+)(/|$)#">
+<If "%{REQUEST_URI} =~ m#(?<!/p/scripts)/(bin|data|extensions|node_modules|vendor|\..+)(/|$)#">
 	Require all denied
 </If>