crowbar/crowbar-core

View on GitHub
chef/cookbooks/apache2/templates/suse/mods/fastcgi.conf.erb

Summary

Maintainability
Test Coverage
# protect the fcgi-bin directory if mod_fastcgi is not loaded
<IfModule !mod_fastcgi.c>
    <Directory "/srv/www/fcgi-bin">
        AllowOverride None
        Options None
        <%- if node[:apache][:version].to_f < 2.4 %>
        Order deny,allow
        Deny from all
        <%- else %>
        Require all denied
        <%- end %>
    </Directory>
</IfModule>

<IfModule mod_fastcgi.c>

    ScriptAlias /fcgi-bin/ /srv/www/fcgi-bin/
    FastCgiIpcDir /var/lib/apache2/fastcgi
    # FastCGI applications can be static, dynamic, or external.

    # Dynamic FastCGI applications can be put in this directory.
    # Use the FastCgiConfig directive in your httpd.conf.local
    # to change the defaults for them.
    # http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiConfig
    <Directory "/srv/www/fcgi-bin">
        AllowOverride None
        Options +ExecCGI -Includes
        SetHandler fastcgi-script
        <%- if node[:apache][:version].to_f < 2.4 %>
        Order allow,deny
        Allow from all
        <%- else %>
        Require all granted
        <%- end %>
    </Directory>
    AddHandler fastcgi-script fcg fcgi fpl

    # Static or external FastCGI applications are started when apache
    # is started. They are configured with the
    # FastCgiServer and FastCgiExternalServer directives:
    # http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiServer
    # http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiExternalServer
    # which can be put into httpd.conf.local.
    #
    # Examples:
    #FastCgiServer /srv/www/fcgi-bin/echo -processes 5
    #FastCgiServer /srv/www/htdocs/some/path/echo.fcgi

    # see http://www.FastCGI.com/docs/faq.html#typical_httpd.conf for more
    # information...

</IfModule>