From 5545f1869f43c821afae81fb0e240813e1b62d7c Mon Sep 17 00:00:00 2001 From: Marius Cramer Date: Mon, 17 Feb 2014 13:34:04 +0100 Subject: [PATCH] Changed Options directives to be compatible with apache 2.4 --- install/dist/lib/opensuse.lib.php | 2 +- install/dist/tpl/gentoo/apache_apps.vhost.master | 4 ++-- install/dist/tpl/gentoo/apache_ispconfig.vhost.master | 4 ++-- install/tpl/apache_apps.vhost.master | 4 ++-- install/tpl/apache_ispconfig.vhost.master | 4 ++-- server/conf/apache_apps.vhost.master | 2 +- server/conf/vhost.conf.master | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/install/dist/lib/opensuse.lib.php b/install/dist/lib/opensuse.lib.php index a4782d72d..657c79551 100644 --- a/install/dist/lib/opensuse.lib.php +++ b/install/dist/lib/opensuse.lib.php @@ -652,7 +652,7 @@ class installer_dist extends installer_base { $content = rf('/etc/apache2/httpd.conf'); if(!stristr($content, 'Include /etc/apache2/sites-enabled/')) { - af('/etc/apache2/httpd.conf', "\n\n Options FollowSymlinks\n\n\nInclude /etc/apache2/sites-enabled/\n\n"); + af('/etc/apache2/httpd.conf', "\n\n Options +FollowSymlinks\n\n\nInclude /etc/apache2/sites-enabled/\n\n"); } unset($content); diff --git a/install/dist/tpl/gentoo/apache_apps.vhost.master b/install/dist/tpl/gentoo/apache_apps.vhost.master index aa90a73af..ac29f81bb 100644 --- a/install/dist/tpl/gentoo/apache_apps.vhost.master +++ b/install/dist/tpl/gentoo/apache_apps.vhost.master @@ -15,7 +15,7 @@ DocumentRoot {apps_vhost_dir} SuexecUserGroup ispapps ispapps - Options Indexes FollowSymLinks MultiViews +ExecCGI + Options +Indexes +FollowSymLinks +MultiViews +ExecCGI AllowOverride AuthConfig Indexes Limit Options FileInfo SetHandler fcgid-script @@ -31,7 +31,7 @@ DocumentRoot {apps_vhost_dir} AddType application/x-httpd-php .php - Options FollowSymLinks + Options +FollowSymLinks AllowOverride None Order allow,deny Allow from all diff --git a/install/dist/tpl/gentoo/apache_ispconfig.vhost.master b/install/dist/tpl/gentoo/apache_ispconfig.vhost.master index bfd67bb8e..f4f08d2bb 100644 --- a/install/dist/tpl/gentoo/apache_ispconfig.vhost.master +++ b/install/dist/tpl/gentoo/apache_ispconfig.vhost.master @@ -14,7 +14,7 @@ NameVirtualHost *:{vhost_port} DocumentRoot /var/www/ispconfig/ SuexecUserGroup ispconfig ispconfig - Options Indexes FollowSymLinks MultiViews +ExecCGI + Options +Indexes +FollowSymLinks +MultiViews +ExecCGI AllowOverride AuthConfig Indexes Limit Options FileInfo SetHandler fcgid-script @@ -30,7 +30,7 @@ NameVirtualHost *:{vhost_port} DocumentRoot /usr/local/ispconfig/interface/web/ AddType application/x-httpd-php .php - Options FollowSymLinks + Options +FollowSymLinks AllowOverride None Order allow,deny Allow from all diff --git a/install/tpl/apache_apps.vhost.master b/install/tpl/apache_apps.vhost.master index cfedb9eb2..d132b503f 100644 --- a/install/tpl/apache_apps.vhost.master +++ b/install/tpl/apache_apps.vhost.master @@ -20,7 +20,7 @@ AddType application/x-httpd-php .php # php_admin_value open_basedir "{apps_vhost_dir}:/usr/share:/tmp" - Options FollowSymLinks + Options +FollowSymLinks AllowOverride None Order allow,deny Allow from all @@ -31,7 +31,7 @@ DocumentRoot {apps_vhost_dir} SuexecUserGroup ispapps ispapps - Options Indexes FollowSymLinks MultiViews +ExecCGI + Options +Indexes +FollowSymLinks +MultiViews +ExecCGI AllowOverride AuthConfig Indexes Limit Options FileInfo AddHandler fcgid-script .php FCGIWrapper {website_basedir}/php-fcgi-scripts/apps/.php-fcgi-starter .php diff --git a/install/tpl/apache_ispconfig.vhost.master b/install/tpl/apache_ispconfig.vhost.master index f3b32c009..7067cdaf6 100644 --- a/install/tpl/apache_ispconfig.vhost.master +++ b/install/tpl/apache_ispconfig.vhost.master @@ -18,7 +18,7 @@ NameVirtualHost *:{vhost_port} DocumentRoot /var/www/ispconfig/ SuexecUserGroup ispconfig ispconfig - Options -Indexes FollowSymLinks MultiViews +ExecCGI + Options -Indexes +FollowSymLinks +MultiViews +ExecCGI AllowOverride AuthConfig Indexes Limit Options FileInfo AddHandler fcgid-script .php FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php @@ -35,7 +35,7 @@ NameVirtualHost *:{vhost_port} AddType application/x-httpd-php .php # php_admin_value open_basedir "/usr/local/ispconfig/interface:/usr/share:/tmp" - Options FollowSymLinks + Options +FollowSymLinks AllowOverride None Order allow,deny Allow from all diff --git a/server/conf/apache_apps.vhost.master b/server/conf/apache_apps.vhost.master index 99665df0d..6d6d4e232 100644 --- a/server/conf/apache_apps.vhost.master +++ b/server/conf/apache_apps.vhost.master @@ -34,7 +34,7 @@ DocumentRoot {tmpl_var name='apps_vhost_dir'} SuexecUserGroup ispapps ispapps - Options Indexes FollowSymLinks MultiViews +ExecCGI + Options +Indexes +FollowSymLinks +MultiViews +ExecCGI AllowOverride AuthConfig Indexes Limit Options FileInfo AddHandler fcgid-script .php FCGIWrapper {tmpl_var name='apps_vhost_basedir'}/php-fcgi-scripts/apps/.php-fcgi-starter .php diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master index 271d3fd71..2e90ddeab 100644 --- a/server/conf/vhost.conf.master +++ b/server/conf/vhost.conf.master @@ -57,7 +57,7 @@ - Options FollowSymLinks + Options +FollowSymLinks AllowOverride Require all granted @@ -85,7 +85,7 @@ - Options FollowSymLinks + Options +FollowSymLinks AllowOverride Require all granted -- GitLab