Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More general compression configuration for Apache #1173

Closed
wants to merge 1 commit into from
Closed

More general compression configuration for Apache #1173

wants to merge 1 commit into from

Conversation

alrra
Copy link
Member

@alrra alrra commented Aug 22, 2012

1) Related discussion: #1012
2) About the solution:
  • Works with Apache ≥ 2.1 and requires mod_deflate and mod_filter to be enabled.
    (personally, I don't think we should target lower as Apache < 2.2 is no longer recommended)
  • For Apache ≥ 2.1 → 2.3.7, mod_filter isn't needed, but I think requiring it and using this solution is the best way going forward (plus, it doesn't introduce other dependencies to other modules like, for example, mod_version)
3) Other information:
  • Apache ≥ 2.3.7:
    • AddOutputFilterByType was moved into mod_filter, so the <IfModule mod_filter.c> condition has to be present and / or mod_filter has to be enabled.

    • Best solution:

      <IfModule mod_deflate.c>
           # ...
           <IfModule mod_filter.c>
               AddOutputFilterByType DEFLATE application/atom+xml ...
           </IfModule>
      </IfModule>
      
  • Apache ≥ 2.1 → 2.3.7:
    • AddOutputFilterByType works without mod_filter, so there is no need to enable it or to have the <IfModule mod_filter.c> condition.

    • Best solution:

        <IfModule mod_deflate.c>
              # ...
              AddOutputFilterByType DEFLATE application/atom+xml ...
        </IfModule>
      
  • Apache 2.0.33 → 2.1

necolas pushed a commit that referenced this pull request Aug 22, 2012
Works with Apache ≥ 2.1 and requires `mod_deflate` and `mod_filter` to
be enabled. However, use of Apache < 2.2 is no longer recommended.

For Apache ≥ 2.1 → 2.3.7, `mod_filter` isn't needed, but requiring it
and using this solution is the best way going forward (plus, it doesn't
introduce other dependencies to other modules like, for example,
`mod_version`).

Fix gh-1012
Ref gh-1173
@necolas
Copy link
Member

necolas commented Aug 22, 2012

Thanks! Merged.

@necolas necolas closed this Aug 22, 2012
necolas pushed a commit to h5bp/server-configs that referenced this pull request Nov 28, 2012
Works with Apache ≥ 2.1 and requires `mod_deflate` and `mod_filter` to
be enabled. However, use of Apache < 2.2 is no longer recommended.

For Apache ≥ 2.1 → 2.3.7, `mod_filter` isn't needed, but requiring it
and using this solution is the best way going forward (plus, it doesn't
introduce other dependencies to other modules like, for example,
`mod_version`).

Fix h5bp/html5-boilerplate#1012
Ref h5bp/html5-boilerplate#1173
alrra added a commit to h5bp/server-configs-apache that referenced this pull request Jul 26, 2013
Works with Apache ≥ 2.1 and requires `mod_deflate` and `mod_filter` to
be enabled. However, use of Apache < 2.2 is no longer recommended.

For Apache ≥ 2.1 → 2.3.7, `mod_filter` isn't needed, but requiring it
and using this solution is the best way going forward (plus, it doesn't
introduce other dependencies to other modules like, for example,
`mod_version`).

Fix  h5bp/html5-boilerplate#1012
Ref  h5bp/html5-boilerplate#1173
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants