site/data

This commit is contained in:
Fred Tempez 2023-09-21 11:15:23 +02:00
parent d7623cd1f5
commit 0b015121ce

View File

@ -1,36 +1,5 @@
# Active la compression GZIP - option Apache # Bloque l'accès aux données et aux log
<IfModule mod_gzip.c> <Files ~ "\.(htaccess|json|log)$">
mod_gzip_on Yes Order deny,allow
mod_gzip_dechunk Yes Deny from all
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ </Files>
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text\.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image\.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
# Active la compression DEFLATE - option Apache
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/shtml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
# Bloque l'accès à la liste des fichiers
Options -Indexes
# Désactive l'option de substitution automatique
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
# ne pas supprimer la ligne URL rewriting !
# URL rewriting