Welcome to WebmasterWorld Guest from 54.163.168.15

Forum Moderators: Ocean10000 & incrediBILL & phranque

How can i use two webservers to listen on port 80?

   
8:14 pm on Dec 30, 2006 (gmt 0)

10+ Year Member



Hi, i am playing with a Apache on a Win2000 system. I have a Apache 2.2 listening on port 80. Works perfect. Now i am trying to test a second Webserver and this server (with a frontiere kernel) can only listen to port 80 and i cannot change this. Is it possible to configure Apache in a way that both servers could listen to port 80? Maybe with mod_rewrite and some directory tricks or something like that?

I know that Zope can be used with a Apache as frontend, but it is listeing to port 8080 like Tomcat.

Any ideas?

Thanks, Markus.

4:21 pm on Jan 1, 2007 (gmt 0)

5+ Year Member



A listening port cannot be shared. What you could do, though, is have one server operate as a proxy for the other. Since you say the Frontier server must use port 80, you'd have to set that one up to route requests to Apache, which would have to be listening on a different port, such as 8080.

I don't know how you'd set up the Frontier server as a proxy, though. Are you sure it'll only run on port 80? The Frontier documentation talks about a setting "user.inetd.config.http.port" which you can use to specify the port it listens on. If that works, it'd be simple to set up the Apache server to act as a proxy instead, using mod_proxy.

5:04 pm on Jan 1, 2007 (gmt 0)

5+ Year Member




Well, you can probably do it if you have two unique IP's for that server, so that you you two different IP:Port combos

# On server 1
Listen 10.1.1.2:80

# On server 2, if it's apache based
Listen 10.1.1.3:80

hope that helps

george

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month