2014-11-26 16:35:54 +01:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerAdmin foo@bar.org
|
2014-12-11 18:58:34 +01:00
|
|
|
DocumentRoot WEB_ROOT
|
2014-11-26 16:35:54 +01:00
|
|
|
php_admin_value upload_tmp_dir /tmp
|
2015-06-16 17:32:09 +02:00
|
|
|
php_value post_max_size 500M
|
|
|
|
php_value upload_max_filesize 500M
|
|
|
|
php_value request_order "GPC"
|
|
|
|
php_value session.gc_probability 0
|
|
|
|
php_value session.auto_start 0
|
|
|
|
|
|
|
|
AddOutputFilterByType DEFLATE text/plain
|
|
|
|
AddOutputFilterByType DEFLATE text/html
|
|
|
|
AddOutputFilterByType DEFLATE text/xml
|
|
|
|
AddOutputFilterByType DEFLATE text/css
|
|
|
|
AddOutputFilterByType DEFLATE application/xml
|
|
|
|
AddOutputFilterByType DEFLATE application/xhtml+xml
|
|
|
|
AddOutputFilterByType DEFLATE application/rss+xml
|
|
|
|
AddOutputFilterByType DEFLATE application/javascript
|
|
|
|
AddOutputFilterByType DEFLATE application/x-javascript
|
|
|
|
AddOutputFilterByType DEFLATE application/json
|
|
|
|
|
2014-11-26 16:35:54 +01:00
|
|
|
|
2014-12-11 18:58:34 +01:00
|
|
|
<Directory WEB_ROOT>
|
2015-06-16 17:32:09 +02:00
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
|
|
RewriteRule ^.*$ - [NC,L]
|
|
|
|
RewriteRule ^.*$ index.php [NC,L]
|
2014-11-26 16:35:54 +01:00
|
|
|
Order allow,deny
|
2015-12-23 18:04:08 +01:00
|
|
|
<IfVersion < 2.4>
|
|
|
|
Allow from all
|
|
|
|
</IfVersion>
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
Require all granted
|
|
|
|
</IfVersion>
|
2015-06-16 17:32:09 +02:00
|
|
|
|
2014-11-26 16:35:54 +01:00
|
|
|
</Directory>
|
|
|
|
</VirtualHost>
|