I have a directory with .terrain files in subdirectories:
Now trying to configure Nginx for this folder:
server {
listen *:8087;
server_name localhost;
location ~* ^/DEM_B1_Area/.*.(terrain)$ {
add_header Content-Encoding gzip;
root "D:/dev/nginx-1.12.1/www";
}
#location /DEM_B1_Area/ {
# root "D:/dev/nginx-1.12.1/www";
# allow all;
#}
}
And in url returns 404.
http://localhost:8087/DEM_B1_Area/0/0/0.terrain
I’m not very familiar with Nginx. What can i miss here?