Skip to content

Commit e69e72c

Browse files
author
Marius Burkard
committed
Merge branch '6127-nginx-ispconfig-vhost-apps-vhost-http2-parameter-incorrect-behavior-after-update' into 'develop'
Resolve "nginx ispconfig.vhost/apps.vhost http2 parameter incorrect behavior after update" Closes #6127 See merge request ispconfig/ispconfig3!1461
2 parents 428e6a2 + d15f5a7 commit e69e72c

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2627,7 +2627,7 @@ public function configure_apps_vhost() {
26272627

26282628
// Enable SSL if a cert is in place.
26292629
if(is_file($conf['ispconfig_install_dir'].'/interface/ssl/ispserver.crt') && is_file($conf['ispconfig_install_dir'].'/interface/ssl/ispserver.key')) {
2630-
$content = str_replace('{ssl_on}', 'ssl', $content);
2630+
$content = str_replace('{ssl_on}', 'ssl http2', $content);
26312631
$content = str_replace('{ssl_comment}', '', $content);
26322632
} else {
26332633
$content = str_replace('{ssl_on}', '', $content);
@@ -3524,7 +3524,7 @@ public function install_ispconfig() {
35243524
$content = str_replace('{vhost_port}', $conf['nginx']['vhost_port'], $content);
35253525

35263526
if(is_file($install_dir.'/interface/ssl/ispserver.crt') && is_file($install_dir.'/interface/ssl/ispserver.key')) {
3527-
$content = str_replace('{ssl_on}', 'ssl', $content);
3527+
$content = str_replace('{ssl_on}', 'ssl http2', $content);
35283528
$content = str_replace('{ssl_comment}', '', $content);
35293529
$content = str_replace('{fastcgi_ssl}', 'on', $content);
35303530
} else {

install/tpl/nginx_apps.vhost.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
server {
2-
listen {apps_vhost_ip}{apps_vhost_port} {ssl_on} http2;
3-
listen [::]:{apps_vhost_port} {ssl_on} ipv6only=on http2;
2+
listen {apps_vhost_ip}{apps_vhost_port} {ssl_on};
3+
listen [::]:{apps_vhost_port} {ssl_on} ipv6only=on;
44

55
{ssl_comment}ssl_protocols TLSv1.2;
66
{ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;

install/tpl/nginx_ispconfig.vhost.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
server {
2-
listen {vhost_port} {ssl_on} http2;
3-
listen [::]:{vhost_port} {ssl_on} ipv6only=on http2;
2+
listen {vhost_port} {ssl_on};
3+
listen [::]:{vhost_port} {ssl_on} ipv6only=on;
44

55
{ssl_comment}ssl_protocols TLSv1.2;
66
{ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;

server/conf/nginx_apps.vhost.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
server {
2-
listen {apps_vhost_ip}{apps_vhost_port} {ssl_on} http2;
3-
listen [::]:{apps_vhost_port} {ssl_on} ipv6only=on http2;
2+
listen {apps_vhost_ip}{apps_vhost_port} {ssl_on};
3+
listen [::]:{apps_vhost_port} {ssl_on} ipv6only=on;
44

55
{ssl_comment}ssl_protocols TLSv1.2;
66
{ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;

server/plugins-available/apps_vhost_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function update($event_name, $data) {
209209
/* Check if SSL should be enabled: */
210210
if(is_file('/usr/local/ispconfig/interface/ssl/ispserver.crt') && is_file('/usr/local/ispconfig/interface/ssl/ispserver.key')) {
211211
$content = str_replace('{ssl_comment}', '', $content);
212-
$content = str_replace('{ssl_on}', 'ssl', $content);
212+
$content = str_replace('{ssl_on}', 'ssl http2', $content);
213213
} else {
214214
$content = str_replace('{ssl_comment}', '#', $content);
215215
$content = preg_replace('/(\s)\{ssl_on\}/', '', $content);

0 commit comments

Comments
 (0)