Plesk – gzip-Unterstützung unter nginx aktivieren

[fusion_builder_container hundred_percent=“no“ equal_height_columns=“no“ menu_anchor=““ hide_on_mobile=“small-visibility,medium-visibility,large-visibility“ class=““ id=““ background_color=““ background_image=““ background_position=“center center“ background_repeat=“no-repeat“ fade=“no“ background_parallax=“none“ parallax_speed=“0.3″ video_mp4=““ video_webm=““ video_ogv=““ video_url=““ video_aspect_ratio=“16:9″ video_loop=“yes“ video_mute=“yes“ overlay_color=““ video_preview_image=““ border_size=““ border_color=““ border_style=“solid“ padding_top=““ padding_bottom=““ padding_left=““ padding_right=““][fusion_builder_row][fusion_builder_column type=“1_1″ layout=“1_1″ background_position=“left top“ background_color=““ border_size=““ border_color=““ border_style=“solid“ border_position=“all“ spacing=“yes“ background_image=““ background_repeat=“no-repeat“ padding_top=““ padding_right=““ padding_bottom=““ padding_left=““ margin_top=“0px“ margin_bottom=“0px“ class=““ id=““ animation_type=““ animation_speed=“0.3″ animation_direction=“left“ hide_on_mobile=“small-visibility,medium-visibility,large-visibility“ center_content=“no“ last=“no“ min_height=““ hover_type=“none“ link=““][fusion_text]

Erstellen Sie die Datei /etc/nginx/conf.d/gzip.conf mit folgenden Parametern:

gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_proxied any;
gzip_types   text/plain text/css 
application/x-javascript 
text/xml 
application/xml 
application/xml+rss 
text/javascript 
image/x-icon 
image/bmp 
image/svg+xml;
gzip_vary on;

gzip_types zur Komprimierung anderer Dateitypen finden Sie in /etc/nginx/mime.types

[/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]
de_DEDeutsch
en_USEnglish de_DEDeutsch
Scrolle nach oben