Skip to content

Commit 52846bb

Browse files
committed
- Fixed FS#2441 - FastCgiExternalServer: redefinition of previously defined class "/usr/lib/cgi-bin/php5-fcgi".
1 parent 254a4af commit 52846bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

server/conf/vhost.conf.master

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,15 @@
236236
<Directory /usr/lib/cgi-bin>
237237
Order allow,deny
238238
Allow from all
239-
</Directory>
240-
AddHandler php5-fcgi .php
241-
Action php5-fcgi /php5-fcgi
242-
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
239+
</Directory>
240+
AddHandler php5-fcgi .php
241+
Action php5-fcgi /php5-fcgi
242+
Alias /php5-fcgi {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}
243243
<tmpl_if name='use_tcp'>
244-
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:<tmpl_var name='fpm_port'> -pass-header Authorization
244+
FastCgiExternalServer {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'} -host 127.0.0.1:<tmpl_var name='fpm_port'> -pass-header Authorization
245245
</tmpl_if>
246246
<tmpl_if name='use_socket'>
247-
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket <tmpl_var name='fpm_socket'> -pass-header Authorization
247+
FastCgiExternalServer {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'} -socket <tmpl_var name='fpm_socket'> -pass-header Authorization
248248
</tmpl_if>
249249
</IfModule>
250250
</tmpl_if>

0 commit comments

Comments
 (0)