1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Mod_deflate is working?

Discussion in 'Apache' started by postcd, Oct 10, 2014.

  1. #1
    Hello,

    im trying to make mod_deflate running on server and managing cache. So i want to ask how i can be sure this module is working?

    ls /usr/local/apache/modules
    httpd.exp libphp5.so* mod_bwlimited.so* mod_disable_suexec.so* mod_evasive20.so* mod_ruid2.so* mod_security2.so mod_suphp.so*

    cat /usr/local/apache/conf/httpd.conf | grep eva
    LoadModule evasive20_module modules/mod_evasive20.so

    httpd -M | grep eva
    Syntax OK
    evasive20_module (shared)

    cat /usr/local/apache/conf/httpd.conf | grep defl
    NOTHING

    httpd -M | grep defl
    deflate_module (static)
    Syntax OK

    httpd -v
    Server version: Apache/2.2.27 (Unix)
    Server built: Aug 1 2014 04:13:19
    Cpanel::Easy::Apache v3.26.3 rev9999

    php -v
    PHP 5.3.28 (cli) (built: Aug 1 2014 04:28:18)
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
    with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
    with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
    with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH

    curl -I -H 'Accept-Encoding: gzip,deflate' http://www.mydomain.com
    ...
    Cache-Control: private
    Pragma: private
    Content-Encoding: gzip
    ...
    Vary: User-Agent

    --
    so i see it appears to be enabled in apache, but i cant find it in httpd.conf, any mod deflate log or anything to veriffy it does the job? I see content is gzip encoded, but it non necesarrily mean that its done by mod_deflate? thx
     
    Solved! View solution.
    postcd, Oct 10, 2014 IP
  2. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
  3. postcd

    postcd Well-Known Member

    Messages:
    1,043
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    190
    #3
    Thx, it says:
    Gzip/Deflated enabled ? YES - The url is serving compressed content.
    Response header Content-Encoding: gzip

    So it says gzip, so not deflate

    Which other functions Deflate offers beside gzip?
     
    postcd, Oct 16, 2014 IP
  4. #4
    That's it. The name of old module was gzip, the new name is deflate. If it shows that gzip is enabled then everything is fine, your deflate mod works fine. There is no other use of mod_deflate than to serve compressed (gzipped) content.
     
    pr0t0n, Oct 17, 2014 IP
    postcd likes this.