Bonjour,
J’ai un petit soucis avec apache2 sur debian.
Je ne comprend pas pourquoi certains de mes virtualhosts fonctionnent alors que d’autres non.
Exemple :
<VirtualHost xx.xx.xx.xx:80>
DocumentRoot /home/rep1/rep2/www
<Directory "/home/rep1/rep2/www">
allow from all
Options +Indexes
DirectoryIndex index.php
AllowOverride All
</Directory>
ServerAlias www.mondomaine.com mondomaine.com
Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch
DirectoryIndex index.php index.htm index.html
ServerSignature On
ContentDigest on
ServerName mondomaine.com
</VirtualHost>
fonctionne
<VirtualHost xx.xx.xx.xx:80>
DocumentRoot "/home/rep1/forums/www"
ServerName forums.mondomaine.com
<Directory "/home/rep1/forums/www">
Options +Indexes
DirectoryIndex index.php
AllowOverride All
</Directory>
Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch
DirectoryIndex index.php index.htm index.html
ServerSignature On
ContentDigest on
</VirtualHost>
fonctionne aussi.
Par contre
<VirtualHost xx.xx.xx.xx:80>
DocumentRoot "/home/rep1/forum2/www"
ServerName forum2.mondomaine.com
<Directory "/home/rep1/forum2/www">
Options FollowSymLinks
DirectoryIndex index.php
AllowOverride All
</Directory>
Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch
DirectoryIndex index.php index.htm index.html
ServerSignature On
ContentDigest on
</VirtualHost>
et
<VirtualHost xx.xx.xx.xx:80>
DocumentRoot "/home/rep1/rep2/www/document"
ServerName document.mondomaine.com
<Directory "/home/rep1/rep2/www/document">
allow from all
Options FollowSymLinks
AuthType Basic
</Directory>
DirectoryIndex index.php index.htm index.html test.htm
</VirtualHost>
me donnent
:-/
A moins que ça ne vienne pas des vhosts…
Le premier vhost correspond à mon site internet, il y a un .htaccess
Le second est un forum
Le troisième est un forum protégé par un .htpassword
Le troisième est un répertoire contenant plusieurs répertoires contenant des images affichées sur le site (par exemple, document.mondomaine.com/8794/imgs/3.jpg)
Je ne suis pas un expert ni de apache, ni de debian, ni de php ni du web en général, si quelqu’un pouvait m’aider, ça m’enlèverait une fière chandelle du pied !
Merci !
Edité le 05/03/2008 à 19:42