oui c’est déjà comme ca…
je fait un post de mes fichiers pour plus de précisions :
Voici /etc/hosts ! tadam !
[code]127.0.0.1 localhost
192.168.1.87 hiram #le nom d’hote
192.168.1.87 pi3rrot #le nom du premier vhost que je mettrais plus tard
192.168.1.87 activ-declic #le nom du deuxième vhost que je mettrais plus tard aussi
[/code]
Voici mon /etc/apache2/sites-avaibles/defaut
[code]NameVirtualHost *
<VirtualHost *>
ServerAdmin bourdin.pierre@gmail.com
DocumentRoot /var/www/
Options FollowSymLinks
AllowOverride None
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2’s default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</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
ServerSignature On
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>
[/code]
quand à mon réseau local, il est configuré pareil pour tous les postes en braodcast, netmask. Toutes les ips sont 192.168.1.X
voici mon ifconfig :
[code]eth0 Lien encap:Ethernet HWaddr 00:D0:09:AD:6D:E7
inet adr:192.168.1.87 Bcast:192.168.1.1 Masque:255.255.255.0
adr inet6: fe80::2d0:9ff:fead:6de7/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35015 errors:0 dropped:0 overruns:0 frame:0
TX packets:51506 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:4606865 (4.3 MiB) TX bytes:59102842 (56.3 MiB)
Interruption:11 Adresse de base:0xc000
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:H
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:66 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:5104 (4.9 KiB) TX bytes:5104 (4.9 KiB)
[/code]
Voila, voila, j’ai aussi essayé de changer le répertoire documentroot, mais ca ne marche plus âpres le restart, donc je reste en configuration initiale pour éviter de tout casser…
merci d’avance.