Skip to content

Commit f6896b4

Browse files
committed
Changed apache configuration for fastcgi support.
1 parent 8aeb9f4 commit f6896b4

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

server/conf/vhost.conf.master

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,16 @@
4747
AddType application/x-httpd-php .php .php3 .php4 .php5
4848
</tmpl_if>
4949
<tmpl_if name='php' op='==' value='fast-cgi'>
50-
# php as fast-cgi enabled
51-
AddType application/x-httpd-php .php .php3 .php4 .php5
52-
53-
ScriptAlias <tmpl_var name='fastcgi_alias'> <tmpl_var name='fastcgi_starter_path'>
50+
# php as fast-cgi enabled
51+
<Directory /var/www/<tmpl_var name='domain'>/web>
52+
AddHandler fcgid-script .php .php3 .php4 .php5
53+
FCGIWrapper <tmpl_var name='fastcgi_starter_path'>/<tmpl_var name='fastcgi_starter_script'> .php
54+
Options FollowSymLinks +ExecCGI Indexes
55+
AllowOverride None
56+
Order allow,deny
57+
Allow from all
58+
</Directory>
5459
</tmpl_if>
55-
5660
<tmpl_if name="rewrite_enabled">
5761
RewriteEngine on
5862
<tmpl_loop name="redirects">

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ function update($event_name,$data) {
432432

433433
$tpl->setVar('fastcgi_alias',$fastcgi_config["fastcgi_alias"]);
434434
$tpl->setVar('fastcgi_starter_path',$fastcgi_starter_path);
435+
$tpl->setVar('fastcgi_starter_script',$fastcgi_config["fastcgi_starter_script"]);
435436

436437
}
437438

0 commit comments

Comments
 (0)