Browse Source

Docker fix missing .htaccess (#4074)

Related to https://github.com/FreshRSS/FreshRSS/issues/4073
In our Docker configuration, `.htaccess` files are included only once at startup. The one for themes was missing.
Alexandre Alapetite 4 years ago
parent
commit
816f4178dc
3 changed files with 5 additions and 3 deletions
  1. 4 0
      Docker/FreshRSS.Apache.conf
  2. 0 3
      p/.htaccess
  3. 1 0
      p/themes/.htaccess

+ 4 - 0
Docker/FreshRSS.Apache.conf

@@ -29,3 +29,7 @@ ServerTokens OS
 <Directory /var/www/FreshRSS/p/i>
 	IncludeOptional /var/www/FreshRSS/p/i/.htaccess
 </Directory>
+
+<Directory /var/www/FreshRSS/p/themes>
+	Include /var/www/FreshRSS/p/themes/.htaccess
+</Directory>

+ 0 - 3
p/.htaccess

@@ -7,10 +7,7 @@ AddDefaultCharset	UTF-8
 
 <IfModule mod_mime.c>
 	AddType application/json .map
-	AddType application/font-woff .woff
-	AddType application/font-woff2 .woff2
 
-	AddCharset	UTF-8	.css
 	AddCharset	UTF-8	.html
 	AddCharset	UTF-8	.js
 </IfModule>

+ 1 - 0
p/themes/.htaccess

@@ -1,5 +1,6 @@
 <IfModule mod_mime.c>
 	AddType application/font-woff .woff
+	AddType application/font-woff2 .woff2
 
 	AddCharset	UTF-8	.css
 	AddCharset	UTF-8	.svg