Page par defaut: problème
Bonjour a tous,
J'ai un problème que je n'arrive pas a expliqué ni régler. Je vous l'expose tout de suite:
Lorsque l'on ne précise pas la page a afficher, le serveur (qui doit rencontrer une erreur) n'arrive pas a afficher la page d'index. Une démonstration vaut mieux qu'une périlleuse explication héhé :
L'affichage fonctionne comme ceci:
- http://blogasso.fr/index.php
Mais génère une erreur si on rentre:
- http://blogasso.fr
Et je comprend pas du tout pourquoi ça ce passe comme ça ... :/
Voici les fichiers de configurations (gérés par ispCP):
Partie du code concernant blogasso.fr dans /etc/apache2/sites-available/ispcp.conf
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
<VirtualHost 91.121.101.105:80>
<IfModule suexec_module>
SuexecUserGroup vu2001 vu2001
</IfModule>
ServerAdmin webmaster@blogasso.fr
DocumentRoot /var/www/virtual/blogasso.fr/htdocs
ServerName blogasso.fr
ServerAlias www.blogasso.fr blogasso.fr *.blogasso.fr vu2001.admin.blogasso.fr
Alias /errors /var/www/virtual/blogasso.fr/errors/
RedirectMatch permanent ^/ftp([\/]?) http://admin.blogasso.fr/ftp/
RedirectMatch permanent ^/pma([\/]?) http://admin.blogasso.fr/pma/
RedirectMatch permanent ^/webmail([\/]?) http://admin.blogasso.fr/webmail/
RedirectMatch permanent ^/ispcp([\/]?) http://admin.blogasso.fr/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule mod_cband.c>
CBandUser blogasso.fr
</IfModule>
# httpd awstats support BEGIN.
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /stats http://localhost/stats/blogasso.fr
ProxyPassReverse /stats http://localhost/stats/blogasso.fr
<Location /stats>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=blogasso.fr&$3 [NC,L]
</IfModule>
AuthType Basic
AuthName "Statistics for domain blogasso.fr"
AuthUserFile /var/www/virtual/blogasso.fr/.htpasswd
AuthGroupFile /var/www/virtual/blogasso.fr/.htgroup
Require group statistics
</Location>
# httpd awstats support END.
# httpd dmn entry cgi support BEGIN.
ScriptAlias /cgi-bin/ /var/www/virtual/blogasso.fr/cgi-bin/
<Directory /var/www/virtual/blogasso.fr/cgi-bin>
AllowOverride AuthConfig
#Options ExecCGI
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry cgi support END.
<Directory /var/www/virtual/blogasso.fr/htdocs>
# httpd dmn entry PHP support BEGIN.
# httpd dmn entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry PHP2 support BEGIN.
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/virtual/blogasso.fr/:/var/www/virtual/blogasso.fr/phptmp/:/usr/share/php/"
php_admin_value upload_tmp_dir "/var/www/virtual/blogasso.fr/phptmp/"
php_admin_value session.save_path "/var/www/virtual/blogasso.fr/phptmp/"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/blogasso.fr/
<Directory "/var/www/fcgi/blogasso.fr">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fcgid.c>
Include /etc/apache2/mods-available/fcgid_ispcp.conf
<Directory /var/www/virtual/blogasso.fr/htdocs>
FCGIWrapper /var/www/fcgi/blogasso.fr/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/blogasso.fr">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
# httpd dmn entry PHP2 support END.
Include /etc/apache2/ispcp/blogasso.fr.conf
DirectoryIndex index.php index.cgi index.pl index.htm index.html index.php4
</VirtualHost> |
Une piste ? :?