34 lines
No EOL
832 B
ApacheConf
34 lines
No EOL
832 B
ApacheConf
|
|
AddType text/plain .md
|
|
AddType text/plain .atom
|
|
AddType text/plain .rss
|
|
|
|
# php_value upload_max_filesize 40M
|
|
# php_value post_max_size 42M
|
|
|
|
RewriteEngine On
|
|
RewriteBase /
|
|
|
|
RewriteCond %{REQUEST_URI} !^/(raw|static)/
|
|
RewriteRule ^.*\.(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp)$ raw/%{HTTP_HOST}%{REQUEST_URI} [L,END]
|
|
|
|
RewriteRule ^/?raw/(.*)$ raw/%{HTTP_HOST}/$1 [L,END]
|
|
|
|
RewriteEngine On
|
|
RewriteCond %{HTTPS} !on
|
|
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,END]
|
|
|
|
RewriteCond %{REQUEST_URI} !^/?(static|raw|robots\.txt).*
|
|
RewriteRule (.*) router.php
|
|
|
|
Allow from all
|
|
|
|
Options +Indexes
|
|
|
|
<filesMatch ".(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp)$">
|
|
Header set Cache-Control "max-age=315360, public"
|
|
</filesMatch>
|
|
|
|
<filesMatch ".(js)$">
|
|
Header set Cache-Control "max-age=315360, public"
|
|
</filesMatch> |