[svlug] Listen in apache2
bill at wards.net
Fri Jun 20 12:53:53 PDT 2008
On Mon, Jun 16, 2008 at 11:49 PM, Rick Moen <rick at linuxmafia.com> wrote:
> Quoting Tony Hartzell (hartzellt at charter.net):
>> I'm trying to get my apache2 server set up with SSL/TLS. I'm following
>> O'Reilly Press Apache 3rd Ed. and referring to the documentation from
>> apache.org too. Anyhow, it seems I have to use a 'Listen [address:]443'
>> directive to establish a secure server site, and a 'Listen [address:]80'
>> directive for a regular, non-secure site.
> Here's an example config from Apache httpd 1.3.x. Apache2 (what you're
> running) is something of a different animal, but this stuff might (or
> might not) apply to Apache2, as well.
> Lines that follow are a bit stripped down from the actual
> /etc/apache/httpd.conf file, and you probably don't want to just copy
> and paste, but just borrow from it, knowing that it at least works. ;->
> Port 80
> Listen 443
> Listen 80
Already we have something that wouldn't work in Apache 2.x. Apache 2
is very fussy about Listen lines. Also, the Port directive is
redundant; in Apache 2 Port has been supplanted by Listen. For every
Listen line in Apache 2, it tries to listen on that port; so if you
have more than one Listen for a given port, you get an error about the
port already being in use.
Apache 1.x by contrast simply ignores a redundant Port or Listen line.
More information about the svlug