Skip to content

Commit

Permalink
Merge pull request mozilla#264 from mozilla/upd/apache-protocols
Browse files Browse the repository at this point in the history
Simplify protocol logic for Apache
  • Loading branch information
gstrauss authored Oct 17, 2024
2 parents 1dbb020 + 5af341a commit c2d962f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/templates/partials/apache.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,10 @@
</VirtualHost>

# {{form.config}} configuration
{{#if (minver "2.3.16" form.serverVersion)}}
SSLProtocol all {{#unless (includes "SSLv3" output.protocols)}}-SSLv3{{/unless}}
{{~#unless (includes "TLSv1" output.protocols)}} -TLSv1{{/unless}}
{{~#unless (includes "TLSv1.1" output.protocols)}} -TLSv1.1{{/unless}}
{{~#unless (includes "TLSv1.2" output.protocols)}} -TLSv1.2{{/unless}}
{{else}}
SSLProtocol all -SSLv2 {{#unless (includes "SSLv3" output.protocols)}}-SSLv3 {{/unless}}{{#unless (includes "TLSv1" output.protocols)}}-TLSv1{{/unless}}{{#unless (includes "TLSv1.1" output.protocols)}} -TLSv1.1{{/unless}}{{#unless (includes "TLSv1.2" output.protocols)}} -TLSv1.2{{/unless}}
{{/if}}
SSLProtocol all {{#unless (minver "2.3.16" form.serverVersion)}}-SSLv2 {{/unless}}-SSLv3
{{~#unless (includes "TLSv1" output.protocols)}} -TLSv1{{/unless}}
{{~#unless (includes "TLSv1.1" output.protocols)}} -TLSv1.1{{/unless}}
{{~#unless (includes "TLSv1.2" output.protocols)}} -TLSv1.2{{/unless}}
{{#if output.ciphers.length}}
SSLCipherSuite {{{join output.ciphers ":"}}}
{{/if}}
Expand Down

0 comments on commit c2d962f

Please sign in to comment.