views:

58

answers:

1

Hello,

I got a question about Tomcat + Glassfish configuration. I got 2 enterprise application running on the same machine and with JKMount i have managed to redirect traffic from 8081 to one of them and 8082 to another, but now I also need to deploy WebService. I have deployed WebService and the URL where it is accesible is http://localhost:8080/xyz/abcd?wsdl.

What I want to do is to remove the port from the url and make the traffic pass instead of 8080, on port 80 and to be redirected to 8080, because I already have another service running and occupying the port 80.

Thanks!

+1  A: 

Note that only one process can listen to a specific port at the same time. So if there is already a application using port 80 you will have to configure a proxy for this application. Or, alternativly, you set the blocking application to listening to some other port and use a proxy. If you have root access to the machine, you can use a proxy via Apache+mod_proxy or Cherokee, to redirect external requests on port 80 (or any other apache-listening port) to some specific internal port (or even to ports on other servers).

heb
OK I understand that there is only one process listening on that port. So I can redirect requests containing /xyz/ from port 80 to port 8080 using proxy?
Serhiy
Yes. e.g. the browser URL looks like http://test.com/myapp and the tomcat-webapp is deployed on localhost:8080/myapp a proxy redirect looks like (in Apache mod_proxy):ProxyPass /myapp http://127.0.0.1:8080/myappProxyPassReverse /myapp http://127.0.0.1:8080/myapp
heb
Thanks seems to be working ;)
Serhiy