homepage Welcome to WebmasterWorld Guest from 54.167.182.201
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

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

10+ Year Member



 
Msg#: 3203938 posted 8:14 pm on Dec 30, 2006 (gmt 0)

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.

 

alfaguru

5+ Year Member



 
Msg#: 3203938 posted 4:21 pm on Jan 1, 2007 (gmt 0)

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.

equalm

5+ Year Member



 
Msg#: 3203938 posted 5:04 pm on Jan 1, 2007 (gmt 0)


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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved