如何将.dat 类型添加到apache mime.types?
How to add .dat type to apache mime.types?
根据我对 Centos8 和 Apache 的有限经验,我发现 /etc/mime.types 是空的,我如何将 .dat 类型添加到此文件?提前致谢。
<IfModule mime_module>
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
使用 AddType application/dat .dat
mime 类型并测试。
根据我对 Centos8 和 Apache 的有限经验,我发现 /etc/mime.types 是空的,我如何将 .dat 类型添加到此文件?提前致谢。
<IfModule mime_module>
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
使用 AddType application/dat .dat
mime 类型并测试。