Conditionaly load mod_proxy_fcgi or mod_fastcgi

tags/0.0.1_0.fc26_el5
Daniel Berteaud 8 years ago
parent 4c0439a2a8
commit c01d59f523
  1. 8
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule81FastCGI
  2. 1
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule81ProxyFcgi

@ -0,0 +1,8 @@
{
if (-e '/usr/lib64/httpd/modules/mod_fastcgi.so' || -e '/usr/lib/httpd/modules/mod_fastcgi.so'){
$OUT .= "LoadModule fastcgi_module modules/mod_fastcgi.so\n";
}
else {
$OUT .= "LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so\n";
}
}

@ -1 +0,0 @@
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
Loading…
Cancel
Save