Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Mar 2005 11:48:24 -0500 (EST)
From:      "Ean Kingston" <ean@hedron.org>
To:        "David Larkin" <david.larkin@djl.co.uk>
Cc:        "questions@freebsd.org" <questions@freebsd.org>
Subject:   Re: apachectl startssl at boot time ?
Message-ID:  <2556.216.220.59.169.1109868504.squirrel@216.220.59.169>
In-Reply-To: <20050303175842.788f2485@sparrow>
References:  <20050303175842.788f2485@sparrow>

next in thread | previous in thread | raw e-mail | index | archive | help

> Hi,
>
> I can start apache with SSL ok from the command line
>
>> apachectl startssl
>
> I've now put the following into /etc/rc.conf hoping that it will start at
> boot time.
>
> apache_enable="YES"
> apache_flags="startssl"

Try

apache_flags="-DSSL"

instead.

> This starts Apache on boot time but not with SSL
>
> It seems like startssl is being passed as an argument to httpd rather than
> apachectl.

You are right, the startup scripts call httpd directly. If you look at the
apachectl script you will see that the 'startssl' command does the
following:

    startssl|sslstart|start-SSL)
        if [ $RUNNING -eq 1 ]; then
            echo "$0 $ARG: httpd (pid $PID) already running"
            continue
        fi
        if $HTTPD -DSSL; then
            echo "$0 $ARG: httpd started"

So, if you do what I said above, your web server will start up with ssl
support.

-- 
Ean Kingston
    E-Mail: ean_AT_hedron_DOT_org
 PGP KeyID: 1024D/CBC5D6BB
       URL: http://www.hedron.org/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2556.216.220.59.169.1109868504.squirrel>