Skip to content

Commit efbb88f

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.0.5' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.0.5
2 parents c71d48f + 5a6670b commit efbb88f

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

install/tpl/apache_ispconfig.conf.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m
1818

1919
# Do not allow access to the root file system of the server for security reasons
2020
<Directory />
21+
Options -Indexes
2122
AllowOverride None
2223
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
2324
Require all denied

server/conf/vhost.conf.master

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
</IfModule>
5858

5959
<Directory {tmpl_var name='web_document_root_www'}>
60+
# Clear PHP settings of this website
61+
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
62+
SetHandler None
63+
</FilesMatch>
6064
Options +FollowSymLinks
6165
AllowOverride <tmpl_var name='allow_override'>
6266
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
@@ -85,6 +89,10 @@
8589
</tmpl_if>
8690
</Directory>
8791
<Directory {tmpl_var name='web_document_root'}>
92+
# Clear PHP settings of this website
93+
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
94+
SetHandler None
95+
</FilesMatch>
8896
Options +FollowSymLinks
8997
AllowOverride <tmpl_var name='allow_override'>
9098
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
@@ -186,10 +194,6 @@
186194
SuexecUserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
187195
</IfModule>
188196
</tmpl_if>
189-
# Clear PHP settings of this website
190-
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
191-
SetHandler None
192-
</FilesMatch>
193197
<tmpl_if name='php' op='==' value='mod'>
194198
# mod_php enabled
195199
AddType application/x-httpd-php .php .php3 .php4 .php5
@@ -336,7 +340,7 @@
336340
RewriteCond %{REQUEST_URI} !^<tmpl_var name='rewrite_target'>
337341
</tmpl_if>
338342

339-
RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'><tmpl_if name="rewrite_add_path" op="==" value="y">$1</tmpl_if> <tmpl_if name='rewrite_type' value=''><tmpl_if name="rewrite_is_url" op="==" value="n">[PT]</tmpl_if></tmpl_else><tmpl_var name='rewrite_type'></tmpl_if>
343+
RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'><tmpl_if name="rewrite_add_path" op="==" value="y">$1</tmpl_if> <tmpl_var name='rewrite_type'>
340344

341345
</tmpl_loop>
342346
</tmpl_if>

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2654,7 +2654,7 @@ private function php_fpm_pool_update ($data, $web_config, $pool_dir, $pool_name,
26542654

26552655
$fpm_socket = $socket_dir.$pool_name.'.sock';
26562656
$tpl->setVar('fpm_socket', $fpm_socket);
2657-
$tpl->setVar('fpm_listen_mode', '0600');
2657+
$tpl->setVar('fpm_listen_mode', '0660');
26582658

26592659
$tpl->setVar('fpm_pool', $pool_name);
26602660
$tpl->setVar('fpm_port', $web_config['php_fpm_start_port'] + $data['new']['domain_id'] - 1);

0 commit comments

Comments
 (0)