You can not put a filesmatch inside of another entry.. so we either need to make virtual hosts with different rules or something else. Going for something else.

This commit is contained in:
Stephen Smoogen 2018-11-29 19:25:51 +00:00
parent 85cef7acb7
commit fb274af9e1

View file

@ -221,27 +221,27 @@ AddType video/webm .webm
AddType text/plain .spec
AddType application/vnd.android.package-archive .apk
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
#
# Everything else that ends in gz is just text/plain
#
<FilesMatch "\.gz$">
ForceType text/plain
Header set Content-Encoding: gzip
</FilesMatch>
#
# Match xml.gz to application/x-gzip for repo files
#
<FilesMatch "xml\.gz$">
ForceType application/x-gzip
Header unset Content-Encoding
</FilesMatch>
#
# Match tar.gz to application/x-gzip for repo files
#
<FilesMatch "tar\.gz$">
ForceType application/x-gzip
Header unset Content-Encoding
</FilesMatch>
# #
# # Everything else that ends in gz is just text/plain
# #
# <FilesMatch "\.gz$">
# ForceType text/plain
# Header set Content-Encoding: gzip
# </FilesMatch>
# #
# # Match xml.gz to application/x-gzip for repo files
# #
# <FilesMatch "xml\.gz$">
# ForceType application/x-gzip
# Header unset Content-Encoding
# </FilesMatch>
# #
# # Match tar.gz to application/x-gzip for repo files
# #
# <FilesMatch "tar\.gz$">
# ForceType application/x-gzip
# Header unset Content-Encoding
# </FilesMatch>
<Location />
# Insert filter
@ -269,13 +269,6 @@ AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css a
Header append Vary User-Agent env=!dont-vary
</Location>
<LocationMatch "/repos/.*$">
<FilesMatch "\.gz$">
ForceType application/x-gzip
Header unset Content-Encoding
</FilesMatch>
</LocationMatch>
<LocationMatch "/repos/.*\.(xml|xml\.gz|xml\.asc|sqlite.+)$">
Header set Cache-Control "must-revalidate"
ExpiresActive On