I just installed nginx on my Linux Mint system that already had apache2 working. However nginx took over all request to localhost and all my virtual domains and displayed the default page for nginx in response to every url. I assumed it just took over port 80 which apache2 was using. Anyway I tried to find a way to make nginx use port :8080 instead of :80 but all the information I found had to do with using nginx as some sort of front end for apache2, therefore nginx used :80 and the apache2 used :8080 instead.
In my case I just want them running independently of each other so that I can test stuff on apache2 and nginx exclusively of each other.
How can I make nginx use port :8080 instead of :80?