This issue is most likely due to conflicting Nginx configuration files. By default, Debian provides a basic Nginx setup that includes a configuration file in "/etc/nginx/sites-enabled." You need to delete that particular file by running this command: sudo rm /etc/nginx/sites-enabled/default.