Ansible Tower causing nginx issue after installation

I installed ansible tower on my server.

I did not know then that ansible uses port 80 and 443.

Now, my nginx server was running on port 80. I had grafana server running behind nginx.

After installation of ansible tower, I cannot access my grafana server.

This is what it says(in the picture). I stopped the tower, and then tried to access my grafana server. But it gave me a 502 response even though my grafana and nginx were running.

How can I solve this issue ?