|
|
|
|
|
|
|
|
| <FilesMatch "\.(htaccess|htpasswd|ini|log|sh|sql|conf)$">
|
| Order Allow,Deny
|
| Deny from all
|
| </FilesMatch>
|
|
|
|
|
| <FilesMatch "^vendor/">
|
| Order Allow,Deny
|
| Deny from all
|
| </FilesMatch>
|
|
|
|
|
| <FilesMatch "^logs/">
|
| Order Allow,Deny
|
| Deny from all
|
| </FilesMatch>
|
|
|
|
|
| <Files ".env*">
|
| Order Allow,Deny
|
| Deny from all
|
| </Files>
|
|
|
|
|
| RewriteEngine On
|
|
|
|
|
|
|
|
|
|
|
|
|
| RewriteCond %{REQUEST_FILENAME} !-d
|
| RewriteCond %{REQUEST_URI} (.+)/$
|
| RewriteRule ^ %1 [R=301,L]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RewriteRule ^health$ health.php [L]
|
|
|
|
|
| <IfModule mod_headers.c>
|
|
|
| Header always set X-Frame-Options DENY
|
|
|
|
|
| Header always set X-Content-Type-Options nosniff
|
|
|
|
|
| Header always set X-XSS-Protection "1; mode=block"
|
|
|
|
|
| Header always set Referrer-Policy "strict-origin-when-cross-origin"
|
|
|
|
|
| Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' https://unpkg.com https://cdn.tailwindcss.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https:; connect-src 'self'"
|
|
|
|
|
|
|
| </IfModule>
|
|
|
|
|
| <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
|
| AddOutputFilterByType DEFLATE application/json
|
| </IfModule>
|
|
|
|
|
| <IfModule mod_expires.c>
|
| ExpiresActive On
|
| ExpiresByType image/jpg "access plus 1 month"
|
| ExpiresByType image/jpeg "access plus 1 month"
|
| ExpiresByType image/gif "access plus 1 month"
|
| ExpiresByType image/png "access plus 1 month"
|
| ExpiresByType image/svg+xml "access plus 1 month"
|
| ExpiresByType text/css "access plus 1 month"
|
| ExpiresByType application/pdf "access plus 1 month"
|
| ExpiresByType text/javascript "access plus 1 week"
|
| ExpiresByType application/javascript "access plus 1 week"
|
| ExpiresByType application/x-shockwave-flash "access plus 1 month"
|
| ExpiresByType image/x-icon "access plus 1 year"
|
| ExpiresDefault "access plus 2 days"
|
| </IfModule>
|
|
|
|
|
| <IfModule mod_php.c>
|
| php_value upload_max_filesize 10M
|
| php_value post_max_size 10M
|
| php_value max_execution_time 300
|
| php_value memory_limit 256M
|
| php_flag display_errors Off
|
| php_flag log_errors On
|
| php_value error_log logs/php_errors.log
|
| </IfModule>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|