[TriLUG] Re: HTTP & different ports; routing & stuff

Jon Carnes jonc at nc.rr.com
Wed Oct 1 15:27:28 EDT 2003


The part your missing is that he wants traffic coming in to port 80
(http) to find the proper server.  Traffic coming in for apache.mydomain
should be handled by the Apache webserver, but traffic coming in for
zope.mydomain should go to the Zope webserver.

Both domain names will resolve to the same IP Address, and the requests
will all come in on port 80.  Only one server can listen on port 80, so
he wants to redirect the traffic for the other site to an alternate port
(the port running the other web server).

Capisca!?
 
On Wed, 2003-10-01 at 12:58, Ryan Leathers wrote:
> Huh?  Why not just edit the httpd.conf Listen directive for the address
> and port you want?  Do something similar for zope or whatever the other
> listening app is and be done with it.  
> 
> For example: Listen 192.168.1.1 8080
> This lets apache serve clients connecting to the specified NIC/IP and
> port.
> 
> Does it really need to be more complicated than this?  Maybe Im missing
> something.
> 
> -Ryan
> 
> On Wed, 2003-10-01 at 12:37, James Manning wrote:
> > > Question: I have Apache running on port 8888, and Zope/Plone will be
> > > on 80.  Is there a way to make "http://apache.mydomain.whatever" go
> > > to port 8888 (and thus view apache), and
> > > "http://plone.mydomain.whatever" go to port 80? Seems like it should
> > > be possible; but since linux cannot run 2 services on the same port,
> > > i'm not wise enough to think of a way to do it...
> > 
> > FWIW, normally put apache on port 80 and the "other" web servers on
> > ports like 8080, 8888, etc. and then use mod_rewrite or mod_proxy or
> > mod_jk2 (for tomcat) or whatever to get the requests funneled back and
> > forth.
> > 
> > http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
> > http://httpd.apache.org/docs-2.0/mod/mod_proxy.html
> > 
> > However, it sounds like the linked article from elsewhere in this
> > thread points to how Zope can handle this duty well enough :)
> > 
> > Having Apache in front may just be more of a "right tool for the job"
> > thing from my perspective, but it's certainly possible that my lack of
> > familiarity with Zope is dominating that opinion :)
> > 
> > James
> > -- 
> > James Manning <http://www.sublogic.com/james/>
> > GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7  9C8E A0BF B026 EEBB F6E4




More information about the TriLUG mailing list