in the var/www/ directory for the default file I had this code ” upstream wp-php-handler { server unix:/var/run/php/php7.3-fpm.sock; } server { listen 80; server*name* ; root /var/www/wordpress/; index index.php; location / { try\_files $uri $uri/ /index.php?$args; } location \~ .php$ { include snippets/fastcgi-php.conf; fastcgi\_pass wp-php-handler; } } ” and had error 502 and changed the code with the index I am just making sure that it wasn’t the contents in this file before getting help with the index.
[ad_2]
Ooof, update your PHP version. You’re waaay behind.
Hard to say what’s causing it, maybe that you’re only handling http:// over port 80 and not https://, but as a reference point take a look at the default nginx config here:
https://developer.wordpress.org/advanced-administration/server/web-server/nginx/#main-generic-startup-file
And also turn on nginx error logging too:
https://docs.nginx.com/nginx/admin-guide/monitoring/logging/
With a 502 I’d usually look at the logs for errors first.