2024-02-11 23:16:08 +00:00
|
|
|
<IfModule mod_php.c>
|
|
|
|
php_value upload_max_filesize 100M
|
|
|
|
php_value post_max_size 100M
|
|
|
|
php_value max_execution_time 30
|
|
|
|
php_value max_input_time 30
|
|
|
|
php_value max_file_uploads 25
|
|
|
|
</IfModule>
|
|
|
|
|
2007-05-17 15:15:58 +00:00
|
|
|
<IfModule mod_dir.c>
|
2024-02-11 23:16:08 +00:00
|
|
|
DirectoryIndex index.php
|
2007-05-17 15:15:58 +00:00
|
|
|
</IfModule>
|
|
|
|
|
2009-01-22 15:51:50 +00:00
|
|
|
<FilesMatch "\.(sqlite|sdb|s3db|db)$">
|
2015-09-27 19:48:30 +00:00
|
|
|
<IfModule mod_authz_host.c>
|
2015-09-25 20:06:56 +00:00
|
|
|
Require all denied
|
2015-09-27 19:48:30 +00:00
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_authz_host.c>
|
2015-09-25 20:06:56 +00:00
|
|
|
Deny from all
|
2015-09-27 19:48:30 +00:00
|
|
|
</IfModule>
|
2009-01-22 15:51:50 +00:00
|
|
|
</FilesMatch>
|
|
|
|
|
2007-05-17 14:37:24 +00:00
|
|
|
<IfModule mod_rewrite.c>
|
2017-03-17 23:56:26 +00:00
|
|
|
RewriteEngine On
|
2007-05-17 14:27:46 +00:00
|
|
|
|
2009-07-07 15:33:25 +00:00
|
|
|
# rather than link to images/ha/hash and have an ugly filename,
|
|
|
|
# we link to images/hash/tags.ext; mod_rewrite splits things so
|
|
|
|
# that shimmie sees hash and the user sees tags.ext
|
2020-04-02 21:31:57 +00:00
|
|
|
RewriteRule ^_(images|thumbs)/([0-9a-f]{2})([0-9a-f]{30}).*$ data/$1/$2/$2$3 [L]
|
2007-05-17 14:27:46 +00:00
|
|
|
|
2009-07-07 15:33:25 +00:00
|
|
|
# any requests for files which don't physically exist should be handled by index.php
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
2023-09-30 03:26:40 +00:00
|
|
|
RewriteRule ^(.*)$ index.php?q=$1&%{QUERY_STRING} "[L,B= ?,BNP]"
|
2007-05-17 14:37:24 +00:00
|
|
|
</IfModule>
|
2007-05-18 16:43:36 +00:00
|
|
|
|
2009-07-07 15:33:25 +00:00
|
|
|
<IfModule mod_expires.c>
|
|
|
|
ExpiresActive On
|
2024-02-12 11:05:49 +00:00
|
|
|
<FilesMatch "([0-9a-f]{32}|\.(gif|jpe?g|png|webp))$">
|
2013-07-03 08:21:21 +00:00
|
|
|
<IfModule mod_headers.c>
|
|
|
|
Header set Cache-Control "public, max-age=2629743"
|
|
|
|
</IfModule>
|
2011-12-27 18:08:49 +00:00
|
|
|
ExpiresDefault "access plus 1 month"
|
|
|
|
</FilesMatch>
|
2024-02-12 11:05:49 +00:00
|
|
|
<FilesMatch "\.(css|js)$">
|
|
|
|
<IfModule mod_headers.c>
|
|
|
|
Header set Cache-Control "public, max-age=86400"
|
|
|
|
</IfModule>
|
|
|
|
ExpiresDefault "access plus 1 day"
|
|
|
|
</FilesMatch>
|
2011-12-27 18:08:49 +00:00
|
|
|
#ExpiresByType text/html "now"
|
|
|
|
#ExpiresByType text/plain "now"
|
2009-07-07 15:33:25 +00:00
|
|
|
</IfModule>
|
|
|
|
|
2017-03-17 23:56:26 +00:00
|
|
|
<IfModule mod_deflate.c>
|
2009-07-07 15:33:25 +00:00
|
|
|
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
|
|
|
|
AddOutputFilterByType DEFLATE application/x-javascript application/javascript
|
2017-03-17 23:56:26 +00:00
|
|
|
</IfModule>
|
2016-05-14 21:56:08 +00:00
|
|
|
|
2017-03-17 23:56:26 +00:00
|
|
|
#EXT: handle_pixel
|
|
|
|
AddType image/jpeg jpg jpeg
|
|
|
|
AddType image/gif gif
|
|
|
|
AddType image/png png
|
2019-06-09 18:22:48 +00:00
|
|
|
AddType image/webp webp
|
2017-03-17 23:56:26 +00:00
|
|
|
|
|
|
|
#EXT: handle_ico
|
2016-09-26 15:15:08 +00:00
|
|
|
AddType image/x-icon ico ani cur
|
2017-03-17 23:56:26 +00:00
|
|
|
|
|
|
|
#EXT: handle_flash
|
|
|
|
AddType application/x-shockwave-flash swf
|
|
|
|
|
|
|
|
#EXT: handle_mp3
|
|
|
|
AddType audio/mpeg mp3
|
|
|
|
|
|
|
|
#EXT: handle_svg
|
|
|
|
AddType image/svg+xml svg svgz
|
|
|
|
|
|
|
|
#EXT: handle_video
|
|
|
|
AddType video/x-flv flv
|
2016-05-14 21:56:08 +00:00
|
|
|
AddType video/mp4 f4v f4p m4v mp4
|
2017-03-17 23:56:26 +00:00
|
|
|
AddType audio/mp4 f4a f4b m4a
|
2016-05-14 21:56:08 +00:00
|
|
|
AddType video/ogg ogv
|
|
|
|
AddType video/webm webm
|