Is there a way to iterate over the list of mime types registered on the website?

Is there a way to iterate over the list of mime types registered on the website?

+4
source share
2 answers

For IIS7 +, you can use ServerManager . For IIS6, there is a MimeMap Metabase Property .

Remember that you can allow different MIME types for specific directories.

+3
source

On Linux Ubuntu Apache2

Mime types handled by two configuration files

  • /etc/mime.types
    • is the mime system configuration file, which, if I understand correctly, uses apache.
  • /etc/apache2/mods-enabled/mime.conf
    • Points above, but also contains a specific configuration for this particular installation.
0
source

Source: https://habr.com/ru/post/1342647/


All Articles