Add new script 'add-mime-types-for-mjs-files.sh'.
This commit is contained in:
15
README.mime.type-javascript-mjs
Normal file
15
README.mime.type-javascript-mjs
Normal file
@ -0,0 +1,15 @@
|
||||
# ---
|
||||
# Serving mjs files with nginx
|
||||
# ---
|
||||
|
||||
|
||||
# In file '/etc/nginx/mime.types' find line
|
||||
#
|
||||
# application/javascript js;
|
||||
#
|
||||
# and replace this line with
|
||||
#
|
||||
#
|
||||
# application/javascript js mjs;
|
||||
#
|
||||
perl -i -n -p -e "s#^(\s*application/javascript\s+)js;#\1js mjs;#" /etc/nginx/mime.types
|
Reference in New Issue
Block a user