Add default mime type in nginx.conf
This commit is contained in:
parent
82433ff000
commit
178ad8a783
@ -11,13 +11,16 @@ http {
|
||||
|
||||
include mime.types;
|
||||
charset utf-8;
|
||||
default_type text/html;
|
||||
|
||||
try_files $uri $uri/ $uri.html =404;
|
||||
|
||||
# return `/posts/index.html` from `/posts`
|
||||
location = /posts {
|
||||
rewrite ^ /posts/ break;
|
||||
}
|
||||
|
||||
# redirect requests ending in a forward slash
|
||||
location ~ ^/(.+)/$ {
|
||||
return 302 /$1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user