server { listen 80 default_server; server_name acn.web-nginx; root /var/www/app; location / { try_files $uri /index.html; } location ~ ^.+\..+$ { try_files $uri =404; } location /api { proxy_pass http://api; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection ‘upgrade’; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } }