Преглед изворни кода

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 пре 10 месеци
родитељ
комит
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>