oui, j’aurais pu mettre la config d’apache, je suis c… aussi.
le site de départ, pour le domaine:
NameVirtualHost 81.56.179.119:80
<VirtualHost *:80>
ServerAdmin remi@suinot.org
DocumentRoot /var/www/suinot.org/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
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 ^/$ /suinot.org/
</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>
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
en premier, le vhost qui marche:
<VirtualHost remi.suinot.org:80>
ServerName remi.suinot.org
ServerAdmin remi@suinot.org
DocumentRoot /home/remi/public_html/
ServerAlias remi.suinot.org
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/remi/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>
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
ErrorLog /var/log/apache2/remi.error.log
CustomLog /var/log/apache2/remi.acces.log combined
</VirtualHost>
le vhost qui marche pas:
<VirtualHost eleonore.suinot.org:80>
ServerName eleonore.suinot.org
ServerAdmin eleonore@suinot.org
ServerAlias eleonore.suinot.org
DocumentRoot /home/eleonore/public_html/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/eleonore/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>
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
ErrorLog /var/log/apache2/eleonore.error.log
CustomLog /var/log/apache2/eleonore.acces.log combined
</VirtualHost>
voici un “schema” de mon réseau:
[eth0 (ip fixe via freebox) ] <-+->pc avec bind9 + apache + postfix + mysql
|
[eth1 (vers le réseau local)] <-+
sur eth1 est connecté une fonera pour un réseau wifi.
correction/édition: bon, ben en fait, mes deux vhost ne sont plus atteignable depuis que j’ai fait mes modifications… j’en ai marre…