[NTLUG:Discuss] Apache question

terry trryhend at gmail.com
Fri Jul 4 14:57:34 CDT 2008


[adapted] From:  http://httpd.apache.org/docs/2.0/bind.html


The Listen <http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listen>directive
tells the server to accept incoming requests only on the specified
port or address-and-port combinations. If only a port number is specified in
the Listen <http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listen>directive,
the server listens to the given port on all interfaces. If an IP
address is given as well as a port, the server will listen on the given port
and interface. Multiple
Listen<http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listen>directives
may be used to specify a number of addresses and ports to listen
on. The server will respond to requests from any of the listed addresses and
ports.

To make the server accept connections on both port 80 and port 8080, use:

Listen 80
Listen 8080

To make the server accept connections on two specified interfaces and port
numbers, use

Listen 192.170.2.1:80
Listen 192.170.2.5:8080

On Tue, Jul 1, 2008 at 11:35 AM, Fred <fredstevens at yahoo.com> wrote:

> I am having trouble understanding as I RTFM on Apache.
> I am trying to serve 2 webpages from the Apache box,
> one to port 80 and the other on port 8080. That is where
> the confusion sets in... it seems that all the howtos say
> multiple addresses, multiple domains or single address,
> multiple domains. Nothing about multiple domains and
> single IP address with multiple ports.
>
> Any insight would be most appreciated.
>
> Thanks,
> Fred
>
>
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>



-- 
<><


More information about the Discuss mailing list