Added static
This commit is contained in:
44
static/.htaccess_autoindex
Normal file
44
static/.htaccess_autoindex
Normal file
@@ -0,0 +1,44 @@
|
||||
Header set Access-Control-Allow-Origin "*"
|
||||
|
||||
Options +Indexes
|
||||
IndexOptions Charset=UTF-8 FancyIndexing HTMLTable IgnoreCase FoldersFirst VersionSort IconsAreLinks IconWidth=25 IconHeight=25 SuppressLastModified SuppressDescription
|
||||
IndexOrderDefault Ascending Name
|
||||
IndexIgnore autoindex
|
||||
IndexHeadInsert "<meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">"
|
||||
IndexStyleSheet /autoindex/style.css
|
||||
HeaderName /autoindex/header.html
|
||||
|
||||
DefaultIcon /autoindex/icon-file.svg
|
||||
AddIcon /autoindex/icon-file-image.svg .png .gif .jpg .jpeg .ico .svg
|
||||
AddIcon /autoindex/icon-file-text.svg .html .css .js .xml .webmanifest
|
||||
AddIcon /autoindex/icon-folder.svg ^^DIRECTORY^^
|
||||
AddIcon /autoindex/icon-back.svg ..
|
||||
|
||||
ErrorDocument 404 /autoindex/redirect.html
|
||||
ErrorDocument 403 /autoindex/redirect.html
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
ExpiresDefault A2592000
|
||||
ExpiresByType text/css A604800
|
||||
ExpiresByType text/javascript A604800
|
||||
ExpiresByType application/javascript A604800
|
||||
</IfModule>
|
||||
|
||||
<filesMatch ".(css|js)$">
|
||||
Header set Cache-Control "max-age=604800, public"
|
||||
</filesMatch>
|
||||
|
||||
<filesMatch ".(png|gif|jpg|jpeg|ico|svg|eot|otf|ttf|woff|woff2|xml|webmanifest)$">
|
||||
Header set Cache-Control "max-age=2592000, public"
|
||||
</filesMatch>
|
||||
|
||||
<filesMatch ".(html|css|js|png|gif|jpg|jpeg|ico|svg|eot|otf|ttf|woff|woff2|xml|webmanifest)$">
|
||||
SetOutputFilter DEFLATE
|
||||
</FilesMatch>
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch ".(html|css|js|png|gif|jpg|jpeg|ico|svg|eot|otf|ttf|woff|woff2|xml|webmanifest)$">
|
||||
Header append Vary: Accept-Encoding
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user