Jacek Kowalski
2016-05-02 0cf5a669f2644ccc3d50b58a2e93ebb03caaee40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<VirtualHost *:80>
    ServerName ${HTTP_HOST}
    ServerAdmin ${HTTP_WEBMASTER}
    
    DocumentRoot "${CASEBOX_PREFIX}/casebox/httpsdocs"
    DirectoryIndex index.php
    
    # HTTP Security Headers
    Header add X-Content-Type-Options no-sniff
    Header add X-Download-Options noopen
    # Header add X-Frame-Options deny
    Header add X-XSS-Protection "1; mode=block"
    
    <Directory "${CASEBOX_PREFIX}/casebox/httpsdocs">
        Options -Includes -ExecCGI
        AllowOverride All
        
        <IfModule mod_php5.c>
            php_admin_flag engine on
            
            php_admin_value max_execution_time 300
            php_admin_value short_open_tag off
            
            php_admin_value upload_max_filesize 200M
            php_admin_value post_max_size 200M
            php_admin_value max_file_uploads 20
            php_admin_value memory_limit 200M
 
            php_admin_value expose_php Off
        </IfModule>
    </Directory>
</VirtualHost>