I am willing to run both nginx and apache2 web server together in order to host multiple domains on the same IP address on my Linux ubuntu server.
I have already modified my ports.conf file to change my ubuntu port to 8080
I installed nginx by disabling the apache webserver because it was creating issues while it was enabled.
But as soon as i made the reverse proxy script and put it in sites enabled i am unable to start both of them together.
Even after changing ubuntu port to 8080 this appears
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 18961/apache2
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 18961/apache2
I do not have 000-default.conf i deleted it earlier when i had only one single domain.
I need to remove apache2 from port 80 so it can only be limited to port 8080 and henceforth i can host my nginx server together with apache.