Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
#
2
# The following lines prevent .user.ini files from being viewed by Web clients.
3
#
4
<Files ".user.ini">
5
    <IfModule mod_authz_core.c>
6
        Require all denied
7
    </IfModule>
8
    <IfModule !mod_authz_core.c>
9
        Order allow,deny
10
        Deny from all
11
        Satisfy All
12
    </IfModule>
13
</Files>
14
 
15
#
16
# Allow php to handle Multiviews
17
#
18
AddType text/html .php
19
 
20
#
21
# Add index.php to the list of files that will be served as directory
22
# indexes.
23
#
24
DirectoryIndex index.php
25
 
26
# mod_php options
27
<IfModule  mod_php7.c>
28
    #
29
    # Cause the PHP interpreter to handle files with a .php extension.
30
    #
31
    <FilesMatch \.(php|phar)$>
32
        SetHandler application/x-httpd-php
33
    </FilesMatch>
34
 
35
    #
36
    # Uncomment the following lines to allow PHP to pretty-print .phps
37
    # files as PHP source code:
38
    #
39
    #<FilesMatch \.phps$>
40
    #    SetHandler application/x-httpd-php-source
41
    #</FilesMatch>
42
 
43
    #
44
    # Apache specific PHP configuration options
45
    # those can be override in each configured vhost
46
    #
47
    php_value session.save_handler "files"
48
    php_value session.save_path    "/var/lib/php/session"
49
    php_value soap.wsdl_cache_dir  "/var/lib/php/wsdlcache"
50
 
51
    #php_value opcache.file_cache   "/var/lib/php/opcache"
52
</IfModule>
53
 
54
# Redirect to local php-fpm if mod_php (5 or 7) is not available
55
<IfModule !mod_php5.c>
56
  <IfModule !mod_php7.c>
57
    # Enable http authorization headers
58
    SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
59
 
60
    <FilesMatch \.(php|phar)$>
61
        SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
62
    </FilesMatch>
63
  </IfModule>
64
</IfModule>