[Nginx] Server is serving a binary output instead of my index.html
-
I did a quasar build.
It runs ok and I can open locally the index.html file and all is working.
I deployed ALL files on my debian server under /var/www/nomeprogetto.ext
Obviously nomeprogetto.ext in reality is the full domain
I created this nginx file
server { listen 80 http2; server_name nomeprogetto.ext; root /var/www/nomeprogetto.ext; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Content-Type-Options "nosniff"; index index.html; charset utf-8; location / { try_files $uri $uri/ /index.html; } location = /robots.txt { access_log off; log_not_found off; } access_log /var/log/nginx/nomeprogetto.ext-access.log; error_log /var/log/nginx/nomeprogetto.extt-error.log error; location ~ /\.(?!well-known).* { deny all; } }
The problem is that accessing the domain, nginx is serving me a little binary file called 'download` instead of simply serving index.html file.
What could be happened?
-
don’t use http2 on non-SSL ports