59 lines
1.9 KiB
ApacheConf
59 lines
1.9 KiB
ApacheConf
DirectorySlash Off
|
|
Options -Indexes
|
|
|
|
ErrorDocument 403 /fatal-error/403
|
|
ErrorDocument 404 /fatal-error/404
|
|
ErrorDocument 500 /fatal-error/500
|
|
|
|
RewriteEngine On
|
|
RewriteCond %{DOCUMENT_ROOT}/thumbs/$1.thumb -f
|
|
RewriteRule ^/?post/(.*)/thumb/?$ /thumbs/$1.thumb
|
|
RewriteRule ^/?thumbs/(.*).thumb - [L,T=image/jpeg]
|
|
|
|
RewriteCond %{DOCUMENT_ROOT}/files/$1 -f
|
|
RewriteRule ^/?post/(.*)/retrieve/?$ /files/$1
|
|
RewriteRule ^/?files/(.*) - [L]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^.*$ /dispatch.php
|
|
RewriteRule ^/?$ /dispatch.php
|
|
|
|
<IfModule mod_deflate.c>
|
|
AddOutputFilterByType DEFLATE text/javascript
|
|
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/x-font-ttf
|
|
</IfModule>
|
|
|
|
<IfModule mod_mime.c>
|
|
AddType text/plain .map
|
|
AddType application/x-font-ttf .ttf
|
|
</IfModule>
|
|
|
|
<IfModule mod_expires.c>
|
|
ExpiresActive on
|
|
ExpiresByType image/jpg "access plus 2 years"
|
|
ExpiresByType image/gif "access plus 2 years"
|
|
ExpiresByType image/jpg "access plus 2 years"
|
|
ExpiresByType image/jpeg "access plus 2 years"
|
|
ExpiresByType image/png "access plus 2 years"
|
|
|
|
ExpiresByType image/x-icon "access plus 2 years"
|
|
ExpiresByType image/icon "access plus 2 years"
|
|
ExpiresByType application/x-ico "access plus 2 years"
|
|
ExpiresByType application/ico "access plus 2 years"
|
|
|
|
ExpiresByType text/plain "access plus 1 year"
|
|
ExpiresByType text/css "access plus 1 year"
|
|
ExpiresByType text/javascript "access plus 1 year"
|
|
ExpiresByType application/javascript "access plus 1 year"
|
|
ExpiresByType application/x-javascript "access plus 1 year"
|
|
</IfModule>
|