Summery: Port 443 problem

From: Henrik Møller Pedersen (hmlpe@tdc.dk)
Date: Mon Sep 02 2002 - 04:13:07 EDT


Hi

Here is the answer to my question:

Problem:

Apache 1.3.26 server running only ssl (port 443)
Server will not start and are dropping the following in the errorlog:
[Wed Aug 28 00:00:21 2002] [crit] (125)Address already in use: make_sock:
could not bind to address 172.30.7.81 port 443

Investigation:
neither port (443) or IP (172.30.7.81 / krumpudv.tdk.dk) in use by any
proces (used netstat and lsof) !!!

Reason:

Problem found in httpd.conf !!!

In the default httpd.conf file you are encuraged to specify a Listen
statement before the Port statement
Specifying a Listen statement, before Port will cause this error

Error:

        httpd.conf:

        <...snip...>

        # Listen: Allows you to bind Apache to specific IP addresses and/or
        # ports, in addition to the default. See also the <VirtualHost>
        # directive.
        #
        #Listen 3000
        Listen krumpudv.tdk.dk:443

        <...snip...>

        #
        # Port: The port to which the standalone server listens. For
        # ports < 1023, you will need httpd to be run as root initially.
        #
        Port 443

Works:

        httpd.conf:

        <...snip...>

        # Listen: Allows you to bind Apache to specific IP addresses and/or
        # ports, in addition to the default. See also the <VirtualHost>
        # directive.
        #
        #Listen 3000
        #Listen krumpudv.tdk.dk:443

        <...snip...>

        #
        # Port: The port to which the standalone server listens. For
        # ports < 1023, you will need httpd to be run as root initially.
        #
        Port 443
      Listen krumpudv.tdk.dk:443

        My original question:

> I have a SUN E280 with Solaris 8 and Apache.
>
> I have problem with port 443.
> When I use netstat -a it doesn't show that port 443 is in use.
>
> Errors in /opt/apache_krumpudv/logs/error_log:
>
> [Wed Aug 28 00:00:21 2002] [crit] (125)Address already in use: make_sock:
> could not bind to address 172.30.7.81 port 443
>
> Please suggest. Thanks in advance.
>
> Regards
>
> Henrik Mxller Pedersen
> Systemmanager
> SBDI (Implementation & Solution)
>
> TDC Services IT * + 45 89 47 55 11
> Gunnar Clausens Vej 28 * + 45 89 47 53 71
> DK-8260 Viby J * hmlpe@tdc.dk
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:52 EDT