View previous topic :: View next topic |
Author |
Message |
malty n00b
Joined: 25 Aug 2004 Posts: 37 Location: France Nice
|
Posted: Tue Apr 04, 2006 7:52 pm Post subject: [Apache 2] Impossible d'utiliser le SSL [RESOLU] |
|
|
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 |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
babykart Guru
Joined: 08 Oct 2004 Posts: 415
|
Posted: Tue Apr 04, 2006 8:55 pm Post subject: |
|
|
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 |
|
|
malty n00b
Joined: 25 Aug 2004 Posts: 37 Location: France Nice
|
Posted: Tue Apr 04, 2006 9:01 pm Post subject: |
|
|
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 |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
malty n00b
Joined: 25 Aug 2004 Posts: 37 Location: France Nice
|
Posted: Wed Apr 05, 2006 5:57 am Post subject: |
|
|
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 |
|
|
malty n00b
Joined: 25 Aug 2004 Posts: 37 Location: France Nice
|
Posted: Wed Apr 05, 2006 7:29 am Post subject: |
|
|
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 |
|
|
|