Просмотр исходного кода

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 месяцев назад
Родитель
Сommit
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>