Static files

MarcoI nginx-forum at forum.nginx.org
Mon May 11 16:41:28 UTC 2020


Following the indications here:
https://docs.nginx.com/nginx/admin-guide/web-server/serving-static-content/
I modified the lines in /etc/nginx/conf.d/default.conf as follows:

server {
    root
/home/marco/webMatters/vueMatters/GraspGlobalChances/src/components/auth/weights;

    location / {
      try_files $uri /weights/ssd_mobilenetv1_model-shard1;
    }
}

I also tried to add these two options:

server {
    root
/home/marco/webMatters/vueMatters/GraspGlobalChances/src/components/auth/weights;

    location / {
      sendfile on;
      tcp_nopush on;
      try_files $uri /weights/ssd_mobilenetv1_model-shard1;
    }
}

But still got the problem

Marco

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,287991,287992#msg-287992



More information about the nginx mailing list