NGINX Service Status Showing Duplicate MIME Type Error
Last Updated:
Overview
When checking on the NGINX service status, a duplicate mime type error shows up:
duplicate MIME type "text/html" in /etc/nginx/conf.d/icsgw_app_<id>.active.conf:331
UI settings will also show not validated:
Applies To
-
Okta Access Gateway (OAG)
Cause
"Text/html" appears in the policy advanced section of the app. OAG implies the "text/html" and will see it as a duplicate if it is there in the directive, as it is already configured by default. In this case, there were multiple entries of subs_filter_types text/html;.
Access gateway validation was also failing because of these warnings. The output should be clean in order for validation to be successful.
Solution
- Edit the application where
subs_filter_types text/html;was added. - Remove the same from the policies advanced section.
- Save the application.
