Bonjour/Bonsoir,
Je viens vers vous car depuis quelques temps (environ 1semaine) je but sur un problème et j'ai beau chercher faire des tutos mais rien a faire je ne trouve pas ...
Voici mon probleme: j'ai mis en place un serveur web (qui tourne sous debian5, apache2, bind9) chez moi, je me suis acheter un nom de domaine et j'ai configurer le tout.
Mon nom de domaine est acheté chez ovh et est géré par mon serveur.
Normalement mon bind est bien configurer aussi bien pour le domaine que pour les sous-domaines: je peux accéder à mon domaines et mes sous-domaines.
Par contre le problème doit venir des virtualHost: je tombe toujours sur la page défini dans le default!
voici mes virtualhost:
(c'est fichiers sont dans: /etc/apache2/site-available/ et j'ai executer la commande a2ensite pour qu'il soit dans le dossier site-enable en lien symbolique.)
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 VHOST du sous-domaine : <VirtualHost monip:80> ServerName sousdomaine.mondomaine.tld DocumentRoot /home/test/public_html/ <Directory /home/test/public_html/> Options -Indexes FollowSymLinks MultiViews AllowOverride All </Directory> ErrorLog /home/test/logs/error.log LogLevel warn CustomLog /home/test/logs/access.log combined ServerSignature Off </VirtualHost> VHOST du domaine : <VirtualHost monip:80> ServerName www.mondomaine.tld DocumentRoot /home/toto/public_html/ <Directory /home/toto/public_html/> Options -Indexes FollowSymLinks MultiViews AllowOverride All </Directory> ErrorLog /home/toto/logs/error.log LogLevel warn CustomLog /home/toto/logs/access.log combined ServerSignature Off </VirtualHost> VHOST default : <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /home/default/public_html ServerName mondomaine.tld ServerAlias www.mondomaine.tld <Directory /home/default/public_html> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost>
Je précise qu'il y a un fichier html dans chacun des dossiers défini dans les documentRoot et bien sur différents pour pouvoir différencier ^^'.
S'il y a besoin de plus d'info n'hésitez pas à me demander!
Merci d'avance pour votre aide!
A bientot
Jonathan






Répondre avec citation
Partager