Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Problema con MOD_DEFLATE y compresion web

Discussion in 'Discusión en Español' started by 50l3r, Jun 11, 2018.

Tags:
  1. 50l3r

    50l3r Active Member

    Joined:
    Mar 3, 2017
    Messages:
    29
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Buenas tardes

    Estoy intentando comprimir un sitio web muy sencillo y no me es posible.

    Tengo habilitado mod_deflate en el servidor, y optimizado todo el contenido, ademas del
    zlib.output_compression activado.

    Este es mi .htaccess:

    Code:
    
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://restaurante.somoparque.com/$1 [R=301,L]
    
    
    <IfModule php7_module>
       php_flag display_errors Off
       php_value max_execution_time 30
       php_value max_input_time 60
       php_value max_input_vars 1000
       php_value memory_limit 128M
       php_value post_max_size 20M
       php_value session.gc_maxlifetime 1440
       php_value session.save_path "/var/cpanel/php/sessions/ea-php56"
       php_value upload_max_filesize 15M
       php_flag zlib.output_compression On
    </IfModule>
    
    
    <IfModule mod_deflate.c>
        <IfModule mod_setenvif.c>
            <IfModule mod_headers.c>
                SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
                RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
            </IfModule>
        </IfModule>
        <IfModule mod_filter.c>
            AddOutputFilterByType DEFLATE "application/atom+xml" \
                                          "application/javascript" \
                                          "application/json" \
                                          "application/ld+json" \
                                          "application/manifest+json" \
                                          "application/rdf+xml" \
                                          "application/rss+xml" \
                                          "application/schema+json" \
                                          "application/vnd.geo+json" \
                                          "application/vnd.ms-fontobject" \
                                          "application/x-font-ttf" \
                                          "application/x-font-opentype" \
                                          "application/x-font-truetype" \
                                          "application/x-javascript" \
                                          "application/x-web-app-manifest+json" \
                                          "application/xhtml+xml" \
                                          "application/xml" \
                                          "font/eot" \
                                          "font/opentype" \
                                          "font/otf" \
                                          "image/bmp" \
                                          "image/svg+xml" \
                                          "image/vnd.microsoft.icon" \
                                          "image/x-icon" \
                                          "text/cache-manifest" \
                                          "text/css" \
                                          "text/html" \
                                          "text/javascript" \
                                          "text/plain" \
                                          "text/vcard" \
                                          "text/vnd.rim.location.xloc" \
                                          "text/vtt" \
                                          "text/x-component" \
                                          "text/x-cross-domain-policy" \
                                          "text/xml"
    
        </IfModule>
        <IfModule mod_mime.c>
            AddEncoding gzip              svgz
        </IfModule>
    
    </IfModule>
    
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault A0
    
        <FilesMatch "\.(txt|xml|js)$">
        ExpiresDefault A691200
        </FilesMatch>
    
        <FilesMatch "\.(css)$">
        ExpiresDefault A691200
        </FilesMatch>
    
        <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
        ExpiresDefault A691200
        </FilesMatch>
    
        <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
        ExpiresDefault A691200
        </FilesMatch>
    </IfModule>
    
    <IfModule mod_headers.c>
        <FilesMatch "\.(txt|xml|js)$">
        Header set Cache-Control "max-age=691200"
        </FilesMatch>
    
        <FilesMatch "\.(css)$">
        Header set Cache-Control "max-age=691200"
        </FilesMatch>
    
        <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
        Header set Cache-Control "max-age=691200"
        </FilesMatch>
    
        <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
        Header set Cache-Control "max-age=691200"
        </FilesMatch>
    </IfModule>
    Pero cuando chequeo no lo tengo habilitado
     
    #1 50l3r, Jun 11, 2018
    Last edited by a moderator: Jun 12, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you open a support ticket so we can take a closer look at how your system is configured to determine why the web page is not compressed?

    Thank you.

    Translation:

    Hola,

    ¿Puedes abrir un ticket de soporte para que podamos ver más de cerca cómo está configurado tu sistema para determinar por qué no se comprime la página web?

    Gracias.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice