I am having a hard time trying to serve static files form bundled nginx.
I already managed to serve other webapps by injecting custom nginx config like posted here.
Now I would like to serve a static website stored under /var/www/test/ but I always get a connection refused reply.
I tried with
server {
listen 80;
server_name 192.168.192.200:30001;
server_tokens off;
access_log /var/log/home_access.log;
error_log /var/log/home_error.log;
root /var/www/test;
location / {
try_files $uri $uri/ =404;
}
}
But as said above I can’t make it work.
I suppose I am configuring sth wrong, is there some info regarding this situation or could someone maybe guide me in some direction?