diff options
| -rw-r--r-- | .htaccess.dist | 2 | ||||
| -rw-r--r-- | p/.htaccess | 1 | ||||
| -rw-r--r-- | p/themes/.htaccess | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/.htaccess.dist b/.htaccess.dist index 33f794673..c11c9e9ab 100644 --- a/.htaccess.dist +++ b/.htaccess.dist @@ -2,7 +2,7 @@ # if you cannot set Apache `DocumentRoot` to `./p/` as recommended. # Deny files starting with a dot or without extension or with specific extensions -<FilesMatch "^\.|^[^.]+$|\.(config\.js|gz|json|md|neon|sqlite|xml|ya?ml|zip)$"> +<FilesMatch "^\.|^[^.]+$|\.(config\.js|gz|md|neon|sqlite|xml|ya?ml|zip)$"> Require all denied </FilesMatch> diff --git a/p/.htaccess b/p/.htaccess index 69e50e065..d8c3e8486 100644 --- a/p/.htaccess +++ b/p/.htaccess @@ -1,6 +1,7 @@ # If you need custom .htaccess rules, instead of modifying this file, # create one in `./i/.htaccess` (in particular for access control such as HTTP Basic Auth), # or in `../.htaccess` for other more general rules. +# See also `../.htaccess.dist` if you cannot set Apache `DocumentRoot` to here (`FreshRSS/p/`) as recommended <IfModule mod_dir.c> DirectoryIndex index.php index.html diff --git a/p/themes/.htaccess b/p/themes/.htaccess index 42732cd38..b38c085e8 100644 --- a/p/themes/.htaccess +++ b/p/themes/.htaccess @@ -1,6 +1,6 @@ <IfModule mod_authz_core.c> # Deny files without extension or with specific extensions - <FilesMatch "^[^.]+$|\.(json|md|scss|sh)$"> + <FilesMatch "^[^.]+$|\.(md|scss|sh)$"> Require all denied </FilesMatch> </IfModule> |
