Welcome! Log In Create A New Profile

Advanced

Re: Static files

May 11, 2020 12:41PM
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
Subject Author Posted

Static files

MarcoI May 11, 2020 10:24AM

Re: Static files

MarcoI May 11, 2020 12:41PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 109
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready