carlwgeorge / rpms / php

Forked from rpms/php 5 years ago
Clone
cvsdist c0a808e
#
dc4f1dc
# The following lines prevent .user.ini files from being viewed by Web clients.
cvsdist c0a808e
#
dc4f1dc
<Files ".user.ini">
dc4f1dc
    Require all denied
dc4f1dc
</Files>
1794235
1794235
#
1794235
# Allow php to handle Multiviews
1794235
#
667d225
AddType text/html .php
cvsdist c0a808e
cvsdist c0a808e
#
cvsdist c0a808e
# Add index.php to the list of files that will be served as directory
cvsdist c0a808e
# indexes.
cvsdist c0a808e
#
cvsdist c0a808e
DirectoryIndex index.php
8e68e30
dc4f1dc
# mod_php options
dc4f1dc
<IfModule  mod_php5.c>
dc4f1dc
    #
dc4f1dc
    # Cause the PHP interpreter to handle files with a .php extension.
dc4f1dc
    #
dc4f1dc
    <FilesMatch \.php$>
dc4f1dc
        SetHandler application/x-httpd-php
dc4f1dc
    </FilesMatch>
b56e05d
dc4f1dc
    #
dc4f1dc
    # Uncomment the following lines to allow PHP to pretty-print .phps
dc4f1dc
    # files as PHP source code:
dc4f1dc
    #
dc4f1dc
    #<FilesMatch \.phps$>
dc4f1dc
    #    SetHandler application/x-httpd-php-source
dc4f1dc
    #</FilesMatch>
dc4f1dc
dc4f1dc
    #
dc4f1dc
    # Apache specific PHP configuration options
dc4f1dc
    # those can be override in each configured vhost
dc4f1dc
    #
dc4f1dc
    php_value session.save_handler "files"
dc4f1dc
    php_value session.save_path    "/var/lib/php/session"
dc4f1dc
    php_value soap.wsdl_cache_dir  "/var/lib/php/wsdlcache"
dc4f1dc
</IfModule>
6e876c1
620b02e
# Redirect to local php-fpm if mod_php is not available
6e876c1
<IfModule !mod_php5.c>
6e876c1
    <FilesMatch \.php$>
6e876c1
        SetHandler "proxy:fcgi://127.0.0.1:9000"
6e876c1
    </FilesMatch>
6e876c1
</IfModule>