Skip to content

Commit 2f1ecfb

Browse files
committed
Fixed: FS#1047 - php scripts with suexec do not work togetherv with redirects (proposed solution included)
1 parent 327f28a commit 2f1ecfb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

server/conf/vhost.conf.master

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@
128128
Order allow,deny
129129
Allow from all
130130
</Directory>
131+
<Directory {tmpl_var name='web_document_root'}>
132+
AddHandler fcgid-script .php .php3 .php4 .php5
133+
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php
134+
Options +ExecCGI
135+
AllowOverride <tmpl_var name='allow_override'>
136+
Order allow,deny
137+
Allow from all
138+
</Directory>
131139
</tmpl_if>
132140
<tmpl_if name="rewrite_enabled">
133141

@@ -286,6 +294,14 @@
286294
Order allow,deny
287295
Allow from all
288296
</Directory>
297+
<Directory {tmpl_var name='web_document_root'}>
298+
AddHandler fcgid-script .php .php3 .php4 .php5
299+
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php
300+
Options +ExecCGI
301+
AllowOverride <tmpl_var name='allow_override'>
302+
Order allow,deny
303+
Allow from all
304+
</Directory>
289305
</tmpl_if>
290306
<tmpl_if name="rewrite_enabled">
291307

0 commit comments

Comments
 (0)