Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 6075

Summary: Apache - extra conf changes for SSL
Product: [OLD] Docs-user Reporter: mathew <mathew.pole>
Component: Desktop Configuration GuideAssignee: Sherman Boyd (meekrob) (RETIRED) <meekrob>
Status: RESOLVED INVALID    
Severity: trivial    
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://gentoo.org/doc/desktop.html
Whiteboard:
Package list:
Runtime testing required: ---

Description mathew 2002-08-06 01:54:06 UTC
In addition to setting the DocumentRoot in /etc/apache/conf/commonapache.conf, I
found that to get SSL working I had to add the following lines:

Add LoadModule ssl_module extramodules/libssl.so
Include  conf/addon-modules/mod_ssl.conf
Include  conf/vhosts/ssl.default-vhost.conf

Note that that the forum topic: <a
href="http://forums.gentoo.org/viewtopic.php?t=10737">apache + mod_ssl - no
response from https://localhost</a> provided some useful information on fixing this.
Comment 1 SpanKY gentoo-dev 2002-08-06 07:54:54 UTC
when mod_ssl is emerged, it displays a msg:
einfo "Execute \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\""
einfo "to have your apache.conf auto-updated for use with this module."
einfo "You should then edit your /etc/conf.d/apache file to suit."

if you do run that command, it will add all the appropriate lines to your conf 
file
Comment 2 Whit Blauvelt 2003-01-03 13:16:42 UTC
Missed that message the first time around, too. There just aren't many ebuilds
that require running an extra script, so it's easy to overlook. I assume there's
a solid reason to not just automate these steps in this case.
Comment 3 Dave Avila 2004-01-06 17:50:22 UTC
Ok... I went through a lot trouble that could've been avoided.

Code:
/usr/sbin/apachectl


is missing the following code to start ssl

Code:
    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"
   else
       echo "$0 $ARG: httpd could not be started"
       ERROR=3
   fi
   ;;


And then, edit
Code:
/etc/apache/conf/vhosts/ssl.default-vhost.conf


to change the root directory to whatever u speficied.

After that, you should be able to run apachectl startssl with no problems