This needs to be added in the main server config and the default is enabled (on): TraceEnable Off
# Activer le module
a2enmod deflate
# On compresse les types mime suivants (hmtl, texte, xml, css, js)
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript
# Niveau de compression
DeflateCompressionLevel 9
# Règles particulières pour navigateur non compatibles
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# On log pour voir le taux de compression
DeflateFilterNote Input input_info
DeflateFilterNote Output output_info
DeflateFilterNote Ratio ratio_info
LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
CustomLog /var/log/apache2/deflate_log deflateopenssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem hint: to generate a wildcard certificate for multiple name-based virtualhosts, use *.domain.tld as the common name.
# uncomment from /etc/apache2/apache2.conf
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1 .your_domain.com
</Location>php_value auto_append_file /chemin_vers_ficher_a_inclure/append.php
<VirtualHost *:80> ServerName www.domain.com RewriteEngine On RewriteRule ^.*$ https://www.domain.com/ [R,L] </VirtualHost> <VirtualHost *:443> ServerName www.domain.com . . .
First / Previous / Next / Last / Page 1 of 1 (7 posteets)