Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Apache 2] Impossible d'utiliser le SSL [RESOLU]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
malty
n00b
n00b


Joined: 25 Aug 2004
Posts: 37
Location: France Nice

PostPosted: Tue Apr 04, 2006 7:52 pm    Post subject: [Apache 2] Impossible d'utiliser le SSL [RESOLU] Reply with quote

Paquets :
Code:
[ebuild   R   ] net-www/apache-2.0.55-r1  +apache2 -debug -doc -ldap -mpm-leader -mpm-peruser -mpm-prefork -mpm-threadpool -mpm-worker -no-suexec (-selinux) +ssl -static-modules +threads 0 kB


Code:
[ebuild   R   ] dev-libs/openssl-0.9.7i  -bindist -emacs -test +zlib 0 kB


Quand je compile apache :
Code:
 * LFS support has been removed due to incompatibilites with other packages.
 * You _will_ have to re-emerge any Apache modules you have installed, or
 * they will likely misbehave/segfault.
 *
 *
 * Multiple MPM support has been disabled due to problems with external
 * modules.  If you have relied on this functionality you will need
 * to find another solution.  The Gentoo Apache team apologizes for
 * any inconvienence this may cause you.


Je peux acceder ma mon site en http://localhost/ mais en https://localhost/ j'ai une erreur.

merci de m'aider :?


Last edited by malty on Wed Apr 05, 2006 7:27 am; edited 2 times in total
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Tue Apr 04, 2006 8:53 pm    Post subject: Reply with quote

'alute

es-tu sûr d'avoir activé le support ssl dans le fichier de configuration d'apache ? :roll:
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
babykart
Guru
Guru


Joined: 08 Oct 2004
Posts: 415

PostPosted: Tue Apr 04, 2006 8:55 pm    Post subject: Reply with quote

est-ce que tu as ce genre de chose dans le fichier /etc/conf.d/apache2
Code:
APACHE2_OPTS="-D SSL -D DEFAULT_VHOST"

_________________
>> Gentoo-FR <<
-----
Back to top
View user's profile Send private message
malty
n00b
n00b


Joined: 25 Aug 2004
Posts: 37
Location: France Nice

PostPosted: Tue Apr 04, 2006 9:01 pm    Post subject: Reply with quote

Oui je l'ai activé :

Code:
 Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# Config file for /etc/init.d/apache2

# When you install a module it is easy to activate or deactivate the modules
# and other features of apache using the APACHE2_OPTS line. Every module should
# install a configuration in /etc/apache2/modules.d. In that file will be an
# <IfDefine NNN> where NNN is the option to enable that module.
# Here are the options available in the default configuration:
#   USERDIR   Enables /~username mapping to /home/username/public_html
#   INFO      Enables mod_info, a useful module for debugging
#   PROXY     Enables mod_proxy
#   DAV       Enables mod_dav
#   DAV_FS    Enables mod_dav_fs (you should enable this when you enable DAV
#             unless you know what you are doing)
#   SSL       Enables SSL
#   SSL_DEFAULT_VHOST  Enables default vhost for SSL (you should enable this
#                      when you enable SSL unless you know what you are doing)
#   LDAP      Enables mod_ldap
#   AUTH_LDAP Enables authentication through mod_ldap
#   DEFAULT_VHOST Enables the default virtual host in /var/www/localhost/htdocs
APACHE2_OPTS="-D USERDIR -D SSL -D PHP4"

# Extended options for advanced uses of Apache ONLY
# You don't need to edit these unless you are doing crazy Apache stuff
# As not having them set correctly, or feeding in an incorrect configuration
# via them will result in Apache failing to start
# YOU HAVE BEEN WARNED.

# ServerRoot setting
#SERVERROOT=/usr/lib/apache2

# Configuration file location
# - If this does NOT start with a '/', then it is treated relative to
# $SERVERROOT by Apache
#CONFIGFILE=/etc/apache2/httpd.conf

# Location to log startup errors to
# They are normally dumped to your terminal.
#STARTUPERRORLOG="/var/log/apache2/startuperror.log"

# Environment variables to keep
# All environment variables are cleared from apache
# Use this to preserve some of them
# NOTE!!! It's very important that this contains PATH
# Also, it will fail if the _value_ of any of these variables contains a space
KEEPENV="PATH"
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Tue Apr 04, 2006 10:51 pm    Post subject: Reply with quote

tu as le userdir activé donc que tu souhaites t'en servir mais tu n'as pas le vhost alors si tu tentes http://localhost/ ...
essaye de relancer apache avec :
Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D USERDIR -D SSL -D SSL_DEFAULT_VHOST -D PHP4"

et regarde pour activer d'autres paramettres qui peuvent-être pas mal : genre les logs...
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
malty
n00b
n00b


Joined: 25 Aug 2004
Posts: 37
Location: France Nice

PostPosted: Wed Apr 05, 2006 5:57 am    Post subject: Reply with quote

Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D USERDIR -D SSL -D SSL_DEFAULT_VHOST -D PHP4"


Ca marche mais le problème vu que j'utilise l'option (USERDIR), l'orsque je fait https://mondomaine.com je rebascule sur le https://localhost (SSL_DEFAULT_VHOST) donc sur la page apache en SSL.

Je crois que le problème viens de la configuration du ssl dans apache :
Code:
40_mod_ssl.conf  41_mod_ssl.default-vhost.conf  45_mod_dav.conf
Back to top
View user's profile Send private message
malty
n00b
n00b


Joined: 25 Aug 2004
Posts: 37
Location: France Nice

PostPosted: Wed Apr 05, 2006 7:29 am    Post subject: Reply with quote

il fallait edité le fichier :
Code:
nano /etc/apache2/modules.d/41_mod_ssl.default-vhost.conf


et modifier :
Code:
DocumentRoot "*ici*"
ServerName localhost:443
ServerAdmin root@localhost
ErrorLog logs/ssl_error_log
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum