Fixed 404 in docker container

This commit is contained in:
kolaente 2019-02-09 12:03:13 +01:00
parent 5e79502b81
commit d024166efe
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -36,5 +36,19 @@ http {
gzip_min_length 256; gzip_min_length 256;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml;
include /etc/nginx/conf.d/*.conf; server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
} }