Explorar el Código

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 hace 10 meses
padre
commit
e24d9f39fb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      .htaccess.dist

+ 1 - 1
.htaccess.dist

@@ -7,6 +7,6 @@
 </FilesMatch>
 </FilesMatch>
 
 
 # Deny some sub-folders, which may not be excluded by their own .htaccess
 # 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
 	Require all denied
 </If>
 </If>