Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:Ledest:erlang:23
erlang
1151-Document-loading-httpd-mime_types-from-fil...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1151-Document-loading-httpd-mime_types-from-file.patch of Package erlang
From 5d09d3c7fa82a53ed0f45629d688f375601e12cc Mon Sep 17 00:00:00 2001 From: Johannes Christ <jc@jchri.st> Date: Fri, 26 May 2023 09:56:45 +0200 Subject: [PATCH] Document loading httpd mime_types from file Re-reading this, a possible improvement could be trying to load mime types from `/etc/mime.types` as a fallback if it exists, as this seems to be the default location at least on Debian. --- lib/inets/doc/src/httpd.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/inets/doc/src/httpd.xml b/lib/inets/doc/src/httpd.xml index 118d38ba2a..b01451f8d3 100644 --- a/lib/inets/doc/src/httpd.xml +++ b/lib/inets/doc/src/httpd.xml @@ -280,7 +280,13 @@ 1590. File suffixes are mapped to MIME types before file delivery. The mapping between file suffixes and MIME types can be specified in the property list.</p> - <p>Default is [{"html","text/html"},{"htm","text/html"}].</p> + <p>Mime types can also be read from a file. The file should contain + lines in the form <c>MediaType [Extensions...]</c>, such as + <c>text/html html htm</c>. To configure this, specify + the path to it, such as <c>{mime_types, "/etc/mime.types"}</c>.</p> + <p>If unset, <c>conf/mime.types</c> under <c>server_root</c> + will be used if it exists, otherwise, the default is + <c>[{"html","text/html"},{"htm","text/html"}]</c>.</p> </item> <tag><marker id="prop_mime_type"></marker>{mime_type, string()}</tag> -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor