I am working on integrating a Spring-MVC application on our Ubuntu server. Currently we are using Etherpad for note-taking tasks in it. Etherpad is a NodeJS application with which multiple users can collaborate and work. It requires a special port to run.
The unfortunate situation we are having is that we tried ports other than 443 and 80, but many corporate networks seem to block it. So, we registered a sub-domain, and in our Apache load-balancer, proxy-passed it. This way, apache or tomcat instance wont interfere with etherpad.
But when I tried to run etherpad, I get Address in USE error. Is there some other way that we can use port-80 or better port-443 both for Etherpad and Apache.
Etherpad error :
[2017-07-07 09:51:40.891] [ERROR] console - Error: listen EADDRINUSE 0.0.0.0:80
Apache2 config :
<VirtualHost sub_domain.my_domain.com:80> ProxyPass / http://localhost:8085/ // Tomcat application ProxyPassReverse / http://localhost:8085/ // Tomcat application </VirtualHost>