Bonjour,
J’ai mis en place sur un serveur sous Lenny, avec Apache2 des sites. Les Vhosts ne sont pas inclus dans le fichier “default” mais dans des fichiers distincts. Il y a donc un fichier par site.
Mon problème vient du fait que si je désactive le fichier “default”, plus aucun site n’est accessible.
A l’inverse, si je désactive un site (a2dissite site), le site en question reste accéssible.
Ou est mon erreur?
Voici le site par défaut d’Apache2:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
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>
[b]
Voici l'un des vhosts d'un site:[/b]
<VirtualHost *:80>
ServerName [mixmoov-studio.com](http://www.mixmoov-studio.com)
ServerAlias mixmoov-studio.com
DocumentRoot /home/mixmoovlight/public_html
# SuexecUserGroup mixmoovlight mixmoovlight
ServerPath /home/mixmoovlight
UserDir /home/mixmoovlight
ErrorLog /var/log/apache2/mixmoovlight-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel notice
<Directory /home/mixmoovlight/public_html/scripts/player >
AllowOverride all
</Directory>
<Directory /home/mixmoovlight/public_html/cgi-bin>
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>
CustomLog /var/log/apache2/mixmoovlight-access.log combined
ServerSignature Off