summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--docs/changes.xml6
-rw-r--r--src/nxt_http_static.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/changes.xml b/docs/changes.xml
index 58181173..5717f1bd 100644
--- a/docs/changes.xml
+++ b/docs/changes.xml
@@ -31,6 +31,12 @@ NGINX Unit updated to 1.24.0.
date="" time=""
packager="Andrei Belov <defan@nginx.com>">
+<change type="change">
+<para>
+PHP added to the default MIME type list.
+</para>
+</change>
+
<change type="feature">
<para>
multiple "targets" in Python applications.
diff --git a/src/nxt_http_static.c b/src/nxt_http_static.c
index c961bb97..08f451b6 100644
--- a/src/nxt_http_static.c
+++ b/src/nxt_http_static.c
@@ -643,6 +643,8 @@ nxt_http_static_mtypes_init(nxt_mp_t *mp, nxt_lvlhsh_t *hash)
{ nxt_string("application/octet-stream"), ".deb" },
{ nxt_string("application/octet-stream"), ".rpm" },
+
+ { nxt_string("application/x-httpd-php"), ".php" },
};
for (i = 0; i < nxt_nitems(default_types); i++) {