Skip to content

Commit 5545f18

Browse files
author
Marius Cramer
committed
Changed Options directives to be compatible with apache 2.4
1 parent d69cca1 commit 5545f18

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

install/dist/lib/opensuse.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ public function configure_apache()
652652

653653
$content = rf('/etc/apache2/httpd.conf');
654654
if(!stristr($content, 'Include /etc/apache2/sites-enabled/')) {
655-
af('/etc/apache2/httpd.conf', "\n<Directory /srv/www>\n Options FollowSymlinks\n</Directory>\n\nInclude /etc/apache2/sites-enabled/\n\n");
655+
af('/etc/apache2/httpd.conf', "\n<Directory /srv/www>\n Options +FollowSymlinks\n</Directory>\n\nInclude /etc/apache2/sites-enabled/\n\n");
656656
}
657657
unset($content);
658658

install/dist/tpl/gentoo/apache_apps.vhost.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
DocumentRoot {apps_vhost_dir}
1616
SuexecUserGroup ispapps ispapps
1717
<Directory {apps_vhost_dir}>
18-
Options Indexes FollowSymLinks MultiViews +ExecCGI
18+
Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
1919
AllowOverride AuthConfig Indexes Limit Options FileInfo
2020
<FilesMatch "\.ph(p[3-5]?|tml)$">
2121
SetHandler fcgid-script
@@ -31,7 +31,7 @@
3131
DocumentRoot {apps_vhost_dir}
3232
AddType application/x-httpd-php .php
3333
<Directory {apps_vhost_dir}>
34-
Options FollowSymLinks
34+
Options +FollowSymLinks
3535
AllowOverride None
3636
Order allow,deny
3737
Allow from all

install/dist/tpl/gentoo/apache_ispconfig.vhost.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ NameVirtualHost *:{vhost_port}
1414
DocumentRoot /var/www/ispconfig/
1515
SuexecUserGroup ispconfig ispconfig
1616
<Directory /var/www/ispconfig/>
17-
Options Indexes FollowSymLinks MultiViews +ExecCGI
17+
Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
1818
AllowOverride AuthConfig Indexes Limit Options FileInfo
1919
<FilesMatch "\.ph(p[3-5]?|tml)$">
2020
SetHandler fcgid-script
@@ -30,7 +30,7 @@ NameVirtualHost *:{vhost_port}
3030
DocumentRoot /usr/local/ispconfig/interface/web/
3131
AddType application/x-httpd-php .php
3232
<Directory /usr/local/ispconfig/interface/web>
33-
Options FollowSymLinks
33+
Options +FollowSymLinks
3434
AllowOverride None
3535
Order allow,deny
3636
Allow from all

install/tpl/apache_apps.vhost.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
AddType application/x-httpd-php .php
2121
<Directory {apps_vhost_dir}>
2222
# php_admin_value open_basedir "{apps_vhost_dir}:/usr/share:/tmp"
23-
Options FollowSymLinks
23+
Options +FollowSymLinks
2424
AllowOverride None
2525
Order allow,deny
2626
Allow from all
@@ -31,7 +31,7 @@
3131
DocumentRoot {apps_vhost_dir}
3232
SuexecUserGroup ispapps ispapps
3333
<Directory {apps_vhost_dir}>
34-
Options Indexes FollowSymLinks MultiViews +ExecCGI
34+
Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
3535
AllowOverride AuthConfig Indexes Limit Options FileInfo
3636
AddHandler fcgid-script .php
3737
FCGIWrapper {website_basedir}/php-fcgi-scripts/apps/.php-fcgi-starter .php

install/tpl/apache_ispconfig.vhost.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ NameVirtualHost *:{vhost_port}
1818
DocumentRoot /var/www/ispconfig/
1919
SuexecUserGroup ispconfig ispconfig
2020
<Directory /var/www/ispconfig/>
21-
Options -Indexes FollowSymLinks MultiViews +ExecCGI
21+
Options -Indexes +FollowSymLinks +MultiViews +ExecCGI
2222
AllowOverride AuthConfig Indexes Limit Options FileInfo
2323
AddHandler fcgid-script .php
2424
FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
@@ -35,7 +35,7 @@ NameVirtualHost *:{vhost_port}
3535
AddType application/x-httpd-php .php
3636
<Directory /usr/local/ispconfig/interface/web>
3737
# php_admin_value open_basedir "/usr/local/ispconfig/interface:/usr/share:/tmp"
38-
Options FollowSymLinks
38+
Options +FollowSymLinks
3939
AllowOverride None
4040
Order allow,deny
4141
Allow from all

server/conf/apache_apps.vhost.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
DocumentRoot {tmpl_var name='apps_vhost_dir'}
3535
SuexecUserGroup ispapps ispapps
3636
<Directory {tmpl_var name='apps_vhost_dir'}>
37-
Options Indexes FollowSymLinks MultiViews +ExecCGI
37+
Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
3838
AllowOverride AuthConfig Indexes Limit Options FileInfo
3939
AddHandler fcgid-script .php
4040
FCGIWrapper {tmpl_var name='apps_vhost_basedir'}/php-fcgi-scripts/apps/.php-fcgi-starter .php

server/conf/vhost.conf.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
</IfModule>
5858

5959
<Directory {tmpl_var name='web_document_root_www'}>
60-
Options FollowSymLinks
60+
Options +FollowSymLinks
6161
AllowOverride <tmpl_var name='allow_override'>
6262
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
6363
Require all granted
@@ -85,7 +85,7 @@
8585
</tmpl_if>
8686
</Directory>
8787
<Directory {tmpl_var name='web_document_root'}>
88-
Options FollowSymLinks
88+
Options +FollowSymLinks
8989
AllowOverride <tmpl_var name='allow_override'>
9090
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
9191
Require all granted

0 commit comments

Comments
 (0)