title: Why is my site downloaded instead of running?
body: <p>I'm trying to install Wordpress on a Ubuntu 18.04 on a subdomain. I set the Nginx files on sites-available, but I get a 502 error on browser because Wordpress is using a .php file type for the index, so I added "index.php" on the list in sites-available. Well after adding "index.php" on the list when I try to access the URL in browser it downloads a file named with the subdomain address.</p>
  
  <p>Here's my code in sites-available</p>
  
  <pre><code>server {
      listen 80;
      listen [::]:80;
  
  
      root /var/www/apt;
  
      # Add index.php to the list if you are using PHP
      index index.html index.htm index.nginx-debian.html index.php;
  
      server_name apt.forrum.ro;
  
      location / {
          # First attempt to serve request as file, then
          # as directory, then fall back to displaying a 404.
          try_files $uri $uri/ =404;
      }
      }
  </code></pre>
  
  <p>Please let me know how to fix it.</p>