No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [Nginx] Server is serving a binary output instead of my index.html

    Help
    2
    2
    298
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      realtebo last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • S
        suleiman_as last edited by

        don’t use http2 on non-SSL ports

        1 Reply Last reply Reply Quote 0
        • First post
          Last post