Bonjour à tous,
Je me suis enfin lancé dans la configuration d'un serveur web sur debian.
Mon serveur est ok, mon nom de domaine fonctionne.
J'ai également pu sans souci ajouter des sous-domaines (par exemple sql.domain.tld pour phpmyadmin)
2 sous-domaines ne veulent pas fonctionner :
- svn.domain.tld pour subversion
- redmine.domain.tld pour redmine via mongrel
J'ai effectué un lien symbolique de mon www.domain.tld/svn vers le répertoire voulu pour tester si cela s'affichait correctement et c'est le cas.
Du coup, je ne vois pas d'où le problème peut venir.
Voici mes virtualhosts :
Donc la première et la troisième déclaration marche sans souci. Hors la 2eme et la 4eme aboutisse tout de suite à "Adresse introuvable".
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88 NameVirtualHost yyy.yyy.yyy.yyy:80 <VirtualHost yyy.yyy.yyy.yyy:80> ServerAdmin contact@xxx.fr ServerName www.xxx.fr ServerAlias xxx.fr DocumentRoot /home/xxx.fr/www/ <Directory /home/xxx.fr/www/> Options -Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ServerSignature Off ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access-xxx.log combined </VirtualHost> <VirtualHost yyy.yyy.yyy.yyy:80> ServerAdmin contact@xxx.fr ServerName svn.xxx.fr DocumentRoot /home/subversion/depot # <Directory /home/subversion/depot> # DAV svn # SVNParentPath /home/subversion/depot # AuthType Basic # AuthName "Subversion Repository" # AuthUserFile /etc/apache2/dav_svn.passwd # AuthzSVNAccessFile /etc/apache2/dav_svn.access # Require valid-user # </Directory> ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access-svn.log combined ServerSignature Off </VirtualHost> <VirtualHost yyy.yyy.yyy.yyy:80> ServerAdmin contact@xxx.fr ServerName sql.xxx.fr DocumentRoot /usr/share/phpmyadmin <Directory /usr/share/phpmyadmin> Options -Indexes FollowSymLinks MultiViews AllowOverride All </Directory> ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access-phpmyadmin.log combined ServerSignature Off </VirtualHost> <VirtualHost yyy.yyy.yyy.yyy:80> ServerAdmin contact@xxx.fr ServerName redmine.xxx.fr DocumentRoot /home/redmine/redmine/public/ <Directory /home/redmine/redmine/public/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> <Proxy *> Order allow,deny Allow from all </Proxy> <Proxy balancer://mongrel_cluster> BalancerMember http://127.0.0.1:8000 BalancerMember http://127.0.0.1:8001 BalancerMember http://127.0.0.1:8002 </Proxy> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -f RewriteRule (.*) $1 [L] ProxyPass / Balancer://mongrel_cluster/ ProxyPassReverse / balancer://mongrel_cluster/ AddOutputFilter DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/redmine.access.log combined ServerSignature Off </VirtualHost>
Si quelqu'un a une idée, je suis preneur.
Merci d'avance.
Partager