| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- # Increase PHP upload limits
- php_value upload_max_filesize 20M
- php_value post_max_size 25M
- php_value memory_limit 256M
- php_value max_execution_time 300
- php_value max_input_time 300
- # Enable compression
- <IfModule mod_deflate.c>
- 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
- </IfModule>
- # Set caching headers
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresByType image/jpg "access plus 1 year"
- ExpiresByType image/jpeg "access plus 1 year"
- ExpiresByType image/gif "access plus 1 year"
- ExpiresByType image/png "access plus 1 year"
- ExpiresByType text/css "access plus 1 month"
- ExpiresByType application/pdf "access plus 1 month"
- ExpiresByType text/javascript "access plus 1 month"
- ExpiresByType application/javascript "access plus 1 month"
- ExpiresByType application/x-shockwave-flash "access plus 1 month"
- ExpiresByType image/x-icon "access plus 1 year"
- ExpiresDefault "access plus 2 days"
- </IfModule>
- # Security headers
- <IfModule mod_headers.c>
- Header always set X-Content-Type-Options nosniff
- Header always set X-Frame-Options DENY
- Header always set X-XSS-Protection "1; mode=block"
- </IfModule>
- # Hide .htaccess file
- <Files .htaccess>
- Order allow,deny
- Deny from all
- </Files>
- # Prevent access to config files
- <Files ~ "\.(ini|log|conf)$">
- Order allow,deny
- Deny from all
- </Files>
|