diff --git a/nginx.conf b/nginx.conf index fe8ba36..6d159a8 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,6 +17,14 @@ server { gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; gzip_min_length 1000; + location = /sitemap.xml { + types { } + default_type application/xml; + charset utf-8; + charset_types application/xml; + try_files $uri =404; + } + # Xử lý các request chính location / { try_files $uri $uri/ =404;