Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

server { listen 80; listen [::]:80; server_name www.domain.com.br; return 301 http://www.domain.com.br$request_uri;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
location / {
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { log_not_found off; access_log off; allow all; }
location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
expires max;
log_not_found off;
}
location /sistema/ { //RUNNING NODEJS RIGHT HERE
proxy_read_timeout 600;
client_max_body_size 500M;
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
} }
I would like to serve my static files or my uploaded files from my NODEJS System through www.mydomain.com.br/sistema/uploads/path/tofile www.mydomain.com.br/sistema/views/path/to/views I am using express.static(__dirname + ‘/public’); as static folder;
Is there a possibility? I have been trying to set my server blocks, but I get 404 nginx using those url’s above.
Thank you,
Enrico Alvarenga
ebeecroft
68aa2215160846bca0a00f952c5fdc
009fd274aeae48f2bfbda6ef568676
Cloudstream Apk
032f50ee7f7d489db3b05e204fe139
032f50ee7f7d489db3b05e204fe139
Edward Sitarski
ebeecroft
dashan
34bcef38725b4e6eb5224ae028f17e