Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to add another secure instance of Tomcat in a server that already uses port 80 and port 433.

Is there any way to hide the port number of the new instance, since I'll need to use one which is not universally accepted?

Thanks in advance.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

No, there's no way to hide the port number. Do you have apache running on 80/443? If so, what I'd recommend is to create a new name-based VirtualHost for the tomcat app, and use apache's mod_proxy to proxy through to whatever port tomcat is listening on.

Here's a quick tutorial on how to set up mod_proxy.

share|improve this answer
    
+1 the "reverse proxy" feature should be of interest in mod_proxy for this. –  Bruno Sep 7 '10 at 22:35

Probably the simplest and quickest option is to use a DNAT. You would configure an additional Internet routable IP and NAT the traffic on standard ports to your additional instance. This would be done on your router.

If you have a single server bound to Internet routable IPs, you could bring that additional IP up on the server and bind Tomcat to that, which would allow it to listen on standard ports if they were not used by something else.

If you have a proxy or load balancer, you can potentially configure VIPs or interfaces on them as well.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.