From fe98c110874830e96c469a0146ce21fb56bba58c Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Wed, 4 Mar 2009 17:11:55 +0000 Subject: [PATCH] changed vhost.conf.master --- server/conf/vhost.conf.master | 84 ++--------------------------------- 1 file changed, 4 insertions(+), 80 deletions(-) diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master index 03ef2fa2d9..38d1b61da4 100644 --- a/server/conf/vhost.conf.master +++ b/server/conf/vhost.conf.master @@ -47,30 +47,11 @@ Options +Includes </tmpl_if> <tmpl_if name='php' op='==' value='no'> - <Files ~ '.php$'> + <Files ~ '.php[s3-6]{0,1}$'> Order allow,deny Deny from all Allow from none </Files> - <Files ~ '.php3$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.php4$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.php5$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.phps'> - Order deny,allow - Allow from all - </Files> </tmpl_if> </Directory> <Directory {tmpl_var name='web_document_root'}> @@ -86,30 +67,11 @@ Options +Includes </tmpl_if> <tmpl_if name='php' op='==' value='no'> - <Files ~ '.php$'> + <Files ~ '.php[s3-6]{0,1}$'> Order allow,deny Deny from all Allow from none </Files> - <Files ~ '.php3$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.php4$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.php5$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.phps'> - Order deny,allow - Allow from all - </Files> </tmpl_if> </Directory> @@ -226,30 +188,11 @@ Options +Includes </tmpl_if> <tmpl_if name='php' op='==' value='no'> - <Files ~ '.php$'> + <Files ~ '.php[s3-6]{0,1}$'> Order allow,deny Deny from all Allow from none </Files> - <Files ~ '.php3$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.php4$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.php5$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.phps'> - Order deny,allow - Allow from all - </Files> </tmpl_if> </Directory> <Directory {tmpl_var name='web_document_root'}> @@ -265,30 +208,11 @@ Options +Includes </tmpl_if> <tmpl_if name='php' op='==' value='no'> - <Files ~ '.php$'> + <Files ~ '.php[s3-6]{0,1}$'> Order allow,deny Deny from all Allow from none </Files> - <Files ~ '.php3$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.php4$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.php5$'> - Order allow,deny - Deny from all - Allow from none - </Files> - <Files ~ '.phps'> - Order deny,allow - Allow from all - </Files> </tmpl_if> </Directory> -- GitLab