Bonjour,

Je souhaiterais parvenir a ce que mes clients aient acces a leur webmail directement via leur sous-domaine pour tous les domaines que j'héberge sur mon serveur.
Par ex:
mysql.domaine1.com
et
mysql.domaine2.com
accedent au meme repertoire /usr/share/phpmyadmin
de meme
webmail.domaine1.com
et
webmail.domaine2.com
accedent au meme repertoire /usr/share/roundcube-webmail

J'avais cette configuration qui fonctionnait parfaitement lorsque j'utilisais Plesk, mais maintenant que j'utilise Webmin, je ne parviens pas a le refaire.

Voici ce que j'ai fait:
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
 
<VirtualHost x.x.x.x:80>
	DocumentRoot /usr/share/roundcube-webmail/
	Alias /webmail/ /usr/share/roundcube-webmail/
	ServerName webmail
	ServerAlias webmail.*
	UseCanonicalName Off
</VirtualHost>
 
<IfModule mod_ssl.c>
 
<VirtualHost x.x.x.x:443>
	DocumentRoot /usr/share/roundcube-webmail/
	Alias /webmail/ /usr/share/roundcube-webmail/
	ServerName webmail
	ServerAlias webmail.*
	UseCanonicalName Off
	SSLEngine on
	SSLVerifyClient none
	SSLCertificateFile /usr/share/webmin/miniserv.pem
</VirtualHost>
 
</IfModule>
 
 
<Directory /usr/share/roundcube-webmail/>
 
    DirectoryIndex index.php
    Options +FollowSymLinks
    AllowOverride None
 
    Order allow,deny
    Allow from all
 
    <IfModule mod_mime.c>
 
      <IfModule mod_php4.c>
        AddType application/x-httpd-php .php
 
        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals On
        php_value include_path .
      </IfModule>
 
      <IfModule !mod_php4.c>
        <IfModule mod_actions.c>
          <IfModule mod_cgi.c>
            AddType application/x-httpd-php .php
 
            Action application/x-httpd-php /cgi-bin/php4
          </IfModule>
        </IfModule>
      </IfModule>
 
    </IfModule>
 
</Directory>
mais cela renvoit tous les appels sur le domaine vers le webmail

Merci de votre aide!