j'ai un problème pour prendre en compte les virtual host sur un nouveau serveur apache fraichement installé avec ssl. j'ai un peu cherché mais je nage. un petit coup de main serait précieux !
grep -r NameVirtualHost * donne
le vhost en question donne:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 sites-available/default-ssl:NameVirtualHost ksxxxx.kimsufi.com:443 sites-available/default:NameVirtualHost *:80 sites-enabled/000-default:NameVirtualHost *:80 sites-enabled/default-ssl:NameVirtualHost ksxxxx.kimsufi.com:443
En pratique, domain.be redirige vers le répertoire par défaut d'apache...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 <VirtualHost *:80> ServerName domain.be ServerAlias www.domain.be ServerAlias webmail.domain.be ServerAlias admin.domain.be DocumentRoot /home/domain/public_html ErrorLog /home/domain/logs/error_log CustomLog /home/domain/logs/access_log combined ScriptAlias /cgi-bin/ /home/domain/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/domain/public_html> Options -Indexes IncludesNOEXEC FollowSymLinks allow from all AllowOverride All </Directory> <Directory /home/domain/cgi-bin> allow from all </Directory> RewriteEngine on RewriteCond %{HTTP_HOST} =webmail.domain.be RewriteRule ^(.*) https://domain.be:20000/ [R] RewriteCond %{HTTP_HOST} =admin.domain.be RewriteRule ^(.*) https://domain.be:10000/ [R]
Partager