Error 500's don't tell much. Suggest turning on debugging in Moodle via adding lines to your config.php file.
Please see: https://docs.moodle.org/310/en/Debugging
for how 2. Then come back here to share the text of what debug might be telling you.
Also, check your web servers (nginx) error logs for related entries.