Skip to content

Commit 2068d9e

Browse files
Use /dev/null for mime types if no system mime types file can be found.
1 parent 218e79d commit 2068d9e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/release-notes/version-4.6.5.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Bugs Fixed
1414
``--mount-point``, the static files in the document root outside of the
1515
mount point for the WSGI application would no longer be accessible.
1616

17+
* If no system mime types file can be found, fall back to ``/dev/null``
18+
so that Apache can still at least start up.
19+
1720
Features Changed
1821
----------------
1922

src/server/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def find_mimetypes():
106106
return name
107107
break
108108
else:
109-
return name
109+
return '/dev/null'
110110

111111
APACHE_GENERAL_CONFIG = """
112112
<IfModule !version_module>

0 commit comments

Comments
 (0)