Existe uma solução bastante simples:
server {
listen 0.0.0.0;
server_name fooo.org;
access_log /var/log/nginx/access.log main;
root /var/www/fooo.org;
location / {
# If the file exists as a static file serve it directly without
# running all the other rewite tests on it
if (-f $request_filename) {
break;
}
proxy_pass http://127.0.0.1:8080;
}
}
por favor, marque +1 se ajudou;) obrigado