Skip to content

Commit c0a1a4d

Browse files
author
Till Brehm
committed
Fixed: FS#3165 - .php5 files are not run as FastCGI on OpenSuSE Linux
1 parent 87f67a5 commit c0a1a4d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

server/conf/vhost.conf.master

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
</IfModule>
180180
</tmpl_if>
181181
# Clear PHP settings of this website
182-
<FilesMatch "\.ph(p3?|tml)$">
182+
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
183183
SetHandler None
184184
</FilesMatch>
185185
<tmpl_if name='php' op='==' value='mod'>
@@ -250,6 +250,9 @@
250250
<Directory {tmpl_var name='web_document_root_www'}>
251251
AddHandler fcgid-script .php .php3 .php4 .php5
252252
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php
253+
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php3
254+
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php4
255+
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php5
253256
Options +ExecCGI
254257
AllowOverride <tmpl_var name='allow_override'>
255258
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
@@ -262,6 +265,9 @@
262265
<Directory {tmpl_var name='web_document_root'}>
263266
AddHandler fcgid-script .php .php3 .php4 .php5
264267
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php
268+
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php3
269+
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php4
270+
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php5
265271
Options +ExecCGI
266272
AllowOverride <tmpl_var name='allow_override'>
267273
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
@@ -282,7 +288,7 @@
282288
Allow from all
283289
</tmpl_if>
284290
</Directory>
285-
AddHandler php5-fcgi .php
291+
AddHandler php5-fcgi .php .php3 .php4 .php5
286292
Action php5-fcgi /php5-fcgi
287293
Alias /php5-fcgi {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'}
288294
<tmpl_if name='use_tcp'>

0 commit comments

Comments
 (0)