Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6075 - Apache - extra conf changes for SSL
Summary: Apache - extra conf changes for SSL
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Desktop Configuration Guide (show other bugs)
Hardware: All All
: Lowest trivial (vote)
Assignee: Sherman Boyd (meekrob) (RETIRED)
URL: http://gentoo.org/doc/desktop.html
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-06 01:54 UTC by mathew
Modified: 2004-01-06 17:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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