Hello,
J’ai un domaine mondomaine.com .
Mon domaine principale ne pointe sur rien (page blanche), tout est ok ==> http://mondomaine.com
Celui ci ne va pas être accessible en https, voici une partie de son vhost:
<VirtualHost *:80>
ServerAdmin webmaster@mondomaine.com
DocumentRoot /home/webmaster/www/mondomaine.com/
ServerName mondomaine.com
#<Directory />
#Options FollowSymLinks
#AllowOverride all
#</Directory>
<Directory /home/webmaster/www/mondomaine.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Un 2ème vhost sous la forme panel.mondomaine.com, pas accessible en https mais pourquoi pas plus tard, voici son vhost:
[code]<VirtualHost *:80>
ServerAdmin webmaster@mondomaine.com
DocumentRoot /home/webmaster/www/panel.mondomaine.com/
ServerName panel.mondomaine.com
<Directory /home/webmaster/www/panel.mondomaine.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>[/code]
un troisième vhost ou il y a phpmyadmin (lien symbolique de /usr/share/phpmyadmin/ sur /home/webmaster/www/sql.mondomaine.com/), j’aimerais n’avoir que https sur celui ci, l’accès en http ne répondrait pas, voici son vhost:
Listen 443
<VirtualHost *:443>
ServerAdmin webmaster@mondomaine.com
DocumentRoot /home/webmaster/www/sql.mondomaine.com/
ServerName sql.mondomaine.com
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
#<Directory />
#Options FollowSymLinks
#AllowOverride all
#</Directory>
<Directory /home/webmaster/www/sql.mondomaine.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
et mon ports.conf :
[code]NameVirtualHost *:80
Listen 80
#
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
#Listen 443
#[/code]
Voici ce qu’il se passe sur les différents vhost:
- J’accède bien à https://sql.mondomaine.com mais si j’y vais en HTTP je tombe sur la page de panel.mondomaine.com
- Tout mes autres vhost sont redirigés sur la page phpmyadmin si j’y vais en https, donc https://panel.mondomaine.com je vois la page phpmyadmin et pareil pour http://www.mondomaine.com
Quelqu’un peut il me donner un coup de main s’il vous plait ?
Merci d’avance !