On Tue, 15 May 2001, Bill Stoddard wrote:

> At global scope I have the following config:
> 
> Port 80
> Listen 8080
> 
> As documented, Apache listens on port 8080 (the Port setting is ignored and
> the server will not listen on port 80).  Here is the bug... If I use the %p
> log option to log the port the inbound request was received on, port 80 is
> logged (not port 8080 as expected). r->server->port is set to 80.  This
> looks like plain goofy behaviour to me.

Feature.

Listen tells the server what port to listen on.

Port says what port to think it is listening on.

A fair number of people use this to have Apache running behind load
balancers or firewalls, etc. on a port other than 80, but still allow
redirects, etc. to have the "proper" port 80 since as far as the real
world is concerned it is on port 80.

Now, this isn't necessarily the cleanest way of implementing this.  But
that is the way it is and the way it is used by a lot of people...

Reply via email to