Bonjour a tous,
j’ai un petit problème avec apache2.
Alors pour commencer j’ai un petit serveur sous etch, apache2 et tout l’tsoin tsoin installé dessus, jusque la ca roule.
Mon problème est que je n’arrive pas tester mes shosts sur mon réseau local, mais par contre par internet ca fonctionne. (deux dyndns configurés avec ddclient)
si je tape xxx.homelinux.net je tombe sur une page de mon routeur, et si c’est quelqu’un d’autre sur internet il verra bien la page.
idem pour yyy.homelinux.net
mon fichier default de apache2 (les infos intéréssantes sont tout en bas)
[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>
ServerName localhost
<VirtualHost *>
DocumentRoot /stock/Pierre/www/
ServerName xxx.homelinux.net
ServerAlias *.xxx.homelinux.net
<VirtualHost *>
DocumentRoot /stock/michel/www/
ServerName yyy.homelinux.com
ServerAlias *.yyy.homelinux.com
[/code]
voici aussi mon /etc/hosts au cas ou…
[code]127.0.0.1 localhost hiram
192.168.1.87 hiram
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
~
~
~
~
~
[/code]
donc ma question est, comment puis-je tester mes deux sites a partir de mon réseau local?
merci d’avance