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:
parent
85cef7acb7
commit
fb274af9e1
1 changed files with 21 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue