Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
484
Issues
484
List
Boards
Labels
Service Desk
Milestones
Merge Requests
23
Merge Requests
23
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISPConfig
ISPConfig 3
Commits
38b53771
Commit
38b53771
authored
May 03, 2018
by
Florian Schaal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add HTTP/2 for apache
parent
a6df2bbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
server/conf/vhost.conf.master
server/conf/vhost.conf.master
+9
-0
server/plugins-available/apache2_plugin.inc.php
server/plugins-available/apache2_plugin.inc.php
+11
-0
No files found.
server/conf/vhost.conf.master
View file @
38b53771
...
...
@@ -37,6 +37,15 @@
</tmpl_if>
ServerAdmin webmaster@<tmpl_var name='domain'>
<tmpl_if name='ssl_enabled'>
<tmpl_if name='enable_http2' op='==' value='y'>
Protocols h2 http/1.1
SSLProtocol All -SSLv2 -SSLv3
SSLCipherSuite 'EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !M
D5 !EXP !PSK !SRP !DSS'
</tmpl_if>
</tmpl_if>
ErrorLog /var/log/ispconfig/httpd/<tmpl_var name='domain'>/error.log
<tmpl_if name='errordocs'>
...
...
server/plugins-available/apache2_plugin.inc.php
View file @
38b53771
...
...
@@ -1214,6 +1214,17 @@ class apache2_plugin {
if
(
@
is_file
(
$bundle_file
))
$vhost_data
[
'has_bundle_cert'
]
=
1
;
// HTTP/2.0 ?
$vhost_data
[
'enable_http2'
]
=
'n'
;
if
(
$vhost_data
[
'enable_spdy'
]
==
'y'
){
// check if apache supports http_v2
exec
(
"2>&1 apachectl -M | grep http2_module"
,
$tmp_output
,
$tmp_retval
);
if
(
$tmp_retval
==
0
){
$vhost_data
[
'enable_http2'
]
=
'y'
;
}
unset
(
$tmp_output
,
$tmp_retval
);
}
// Set SEO Redirect
if
(
$data
[
'new'
][
'seo_redirect'
]
!=
''
){
$vhost_data
[
'seo_redirect_enabled'
]
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment