Patrick Anders
2014-12-09 f7ec00b2f8ba3efc5bdeacef9c813f8a826ae3be
add Spdy option
- http://en.wikipedia.org/wiki/SPDY
1 files added
14 files modified
63 ■■■■■ changed files
install/sql/incremental/upd_0080.sql 1 ●●●● patch | view | raw | blame | history
install/sql/ispconfig3.sql 1 ●●●● patch | view | raw | blame | history
install/tpl/server.ini.master 1 ●●●● patch | view | raw | blame | history
interface/web/admin/form/server_config.tform.php 9 ●●●●● patch | view | raw | blame | history
interface/web/admin/lib/lang/de_server_config.lng 1 ●●●● patch | view | raw | blame | history
interface/web/admin/lib/lang/en_server_config.lng 1 ●●●● patch | view | raw | blame | history
interface/web/admin/templates/server_config_web_edit.htm 8 ●●●●● patch | view | raw | blame | history
interface/web/sites/form/web_vhost_domain.tform.php 9 ●●●●● patch | view | raw | blame | history
interface/web/sites/lib/lang/de_web_vhost_domain.lng 1 ●●●● patch | view | raw | blame | history
interface/web/sites/lib/lang/en_web_vhost_domain.lng 1 ●●●● patch | view | raw | blame | history
interface/web/sites/templates/web_vhost_domain_advanced.htm 2 ●●● patch | view | raw | blame | history
interface/web/sites/templates/web_vhost_domain_ssl.htm 8 ●●●● patch | view | raw | blame | history
server/conf/apache_apps.vhost.master 10 ●●●● patch | view | raw | blame | history
server/conf/nginx_vhost.conf.master 4 ●●●● patch | view | raw | blame | history
server/plugins-available/nginx_plugin.inc.php 6 ●●●●● patch | view | raw | blame | history
install/sql/incremental/upd_0080.sql
New file
@@ -0,0 +1 @@
ALTER TABLE `web_domain` ADD COLUMN `enable_spdy` ENUM('y','n') NULL DEFAULT 'n' AFTER `proxy_directives`;
install/sql/ispconfig3.sql
@@ -1877,6 +1877,7 @@
  `traffic_quota_lock` enum('n','y') NOT NULL default 'n',
  `fastcgi_php_version` varchar(255) DEFAULT NULL,
  `proxy_directives` mediumtext,
  `enable_spdy` ENUM('y','n') NULL DEFAULT 'n',
  `last_quota_notification` date NULL default NULL,
  `rewrite_rules` mediumtext,
  `added_date` date NOT NULL DEFAULT '0000-00-00',
install/tpl/server.ini.master
@@ -85,6 +85,7 @@
php_ini_path_cgi=/etc/php5/cgi/php.ini
check_apache_config=y
enable_sni=y
enable_spdy=n
enable_ip_wildcard=y
overtraffic_notify_admin=y
overtraffic_notify_client=y
interface/web/admin/form/server_config.tform.php
@@ -1021,6 +1021,15 @@
            'width' => '40',
            'maxlength' => '255'
        ),
        'enable_spdy' => array (
            'datatype' => 'VARCHAR',
            'formtype' => 'CHECKBOX',
            'default'  => 'y',
            'value' => array (
                0 => 'n',
                1 => 'y'
            )
        ),
        'apps_vhost_port' => array(
            'datatype' => 'VARCHAR',
            'formtype' => 'TEXT',
interface/web/admin/lib/lang/de_server_config.lng
@@ -262,4 +262,5 @@
$wb['php_ini_check_minutes_error_empty'] = 'Bitte geben Sie einen Wert an, wie oft die php.ini auf Änderungen geprüft werden soll.';
$wb['php_ini_check_minutes_info_txt'] = '0 = keine Prüfung';
$wb['php_handler_txt'] = 'Standard-PHP-Handler';
$wb['enable_spdy_txt'] = 'Stellt Spdy zur Verfügung';
?>
interface/web/admin/lib/lang/en_server_config.lng
@@ -263,4 +263,5 @@
$wb['php_ini_check_minutes_txt'] = 'Check php.ini every X minutes for changes';
$wb['php_ini_check_minutes_error_empty'] = 'Please specify a value how often php.ini should be checked for changes.';
$wb['php_ini_check_minutes_info_txt'] = '0 = no check';
$wb['enable_spdy_txt'] = 'enables spdy';
?>
interface/web/admin/templates/server_config_web_edit.htm
@@ -101,6 +101,14 @@
                <label for="htaccess_allow_override">{tmpl_var name='htaccess_allow_override_txt'}</label>
                <input name="htaccess_allow_override" id="htaccess_allow_override" value="{tmpl_var name='htaccess_allow_override'}" size="40" maxlength="255" type="text" class="textInput" />
            </div>
            <div class="ctrlHolder">
                <p class="label">
                    <tmpl_var name="enable_spdy_txt">
                </p>
                <div class="multiField">
                    <tmpl_var name="enable_spdy">
                </div>
            </div>
            <div class="ctrlHolder">
                <p class="label">{tmpl_var name='enable_ip_wildcard_txt'}</p>
                <div class="multiField">
interface/web/sites/form/web_vhost_domain.tform.php
@@ -523,6 +523,15 @@
                'default' => '',
                'value'  => array('' => 'none_txt', 'save' => 'save_certificate_txt', 'create' => 'create_certificate_txt', 'del' => 'delete_certificate_txt')
            ),
            'enable_spdy' => array (
                'datatype' => 'VARCHAR',
                'formtype' => 'CHECKBOX',
                'default'  => 'n',
                'value' => array (
                    0 => 'n',
                    1 => 'y'
                )
            ),
            //#################################
            // ENDE Datatable fields
            //#################################
interface/web/sites/lib/lang/de_web_vhost_domain.lng
@@ -136,4 +136,5 @@
$wb['apache_directive_blocked_error'] = 'Die Apache Direktive wurde durch die Sicherheitsrichtline blockiert:';
$wb['btn_save_txt'] = 'Speichern';
$wb['btn_cancel_txt'] = 'Abbrechen';
$wb['enable_spdy_txt'] = 'Aktiviere Spdy';
?>
interface/web/sites/lib/lang/en_web_vhost_domain.lng
@@ -139,4 +139,5 @@
$wb['subdomain_error_empty'] = 'The subdommain field is empty or contains invalid characters.';
$wb['btn_save_txt'] = "Save";
$wb['btn_cancel_txt'] = "Cancel";
$wb['enable_spdy_txt'] = 'activate Spdy';
?>
interface/web/sites/templates/web_vhost_domain_advanced.htm
@@ -176,4 +176,4 @@
        });
    }
            
</script>
</script>
interface/web/sites/templates/web_vhost_domain_ssl.htm
@@ -64,6 +64,12 @@
                    {tmpl_var name='ssl_action'}
                </select>
            </div>
            <div class="ctrlHolder">
                <p class="label">{tmpl_var name='enable_spdy_txt'}</p>
                <div class="multiField">
                    {tmpl_var name="enable_spdy"}
                </div>
            </div>
        </fieldset>
        <input type="hidden" name="id" value="{tmpl_var name='id'}">
@@ -74,4 +80,4 @@
        </div>
    </div>
</div>
</div>
server/conf/apache_apps.vhost.master
@@ -10,11 +10,17 @@
<VirtualHost {tmpl_var name='apps_vhost_ip'}:{tmpl_var name='apps_vhost_port'}>
  ServerAdmin webmaster@localhost
  {tmpl_var name='apps_vhost_servername'}
  <FilesMatch "\.ph(p3?|tml)$">
    SetHandler None
  </FilesMatch>
  {tmpl_if name="enable_spdy" op="==" value="y"}
  <IfModule spdy_module>
    SpdyEnabled on
  </IfModule>
  {/tmpl_if}
  <IfModule mod_php5.c>
    DocumentRoot {tmpl_var name='apps_vhost_dir'}
    AddType application/x-httpd-php .php
server/conf/nginx_vhost.conf.master
@@ -5,7 +5,7 @@
</tmpl_if>
        
<tmpl_if name='ssl_enabled'>
        listen <tmpl_var name='ip_address'>:443 ssl;
        listen <tmpl_var name='ip_address'>:443 ssl{tmpl_if name='enable_spdy' op='==' value='y'} spdy{/tmpl_if};
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
<tmpl_if name='ipv6_enabled'>
        listen [<tmpl_var name='ipv6_address'>]:443 ssl;
@@ -242,4 +242,4 @@
        }
</tmpl_if>
}
</tmpl_loop>
</tmpl_loop>
server/plugins-available/nginx_plugin.inc.php
@@ -925,6 +925,12 @@
            }
        }
        // Spdy
        $tpl->setVar('spdy_enabled', '');
        if($data['new']['enable_spdy'] == 'y') {
            $tpl->setVar('spdy_enabled', ' spdy');
        }
        // PHP-FPM
        // Support for multiple PHP versions
        /*