webrubick/tzthfdc/master/.htaccess - Htaccess File

webrubick/tzthfdc/master/.htaccess

#GZIP压缩模块配置
<IfModule mod_deflate.c>
#启用对特定MIME类型内容的压缩
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|exe|t?gz|zip|bz2|sit|rar|pdf|mov|avi|mp3|mp4|rm)$ no-gzip dont-vary #设置不对压缩的文件
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml text/javascript application/javascript application/x-httpd-php application/x-javascript #设置对压缩的文件
</IfModule>

<IfModule authz_core_module>
  Require all denied
</IfModule>
<IfModule !authz_core_module>
  Deny from all
</IfModule>

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, no-gzip, REQUEST_URI

Comments

Apache