Salut à tous !
Non, ce qu’on me demande, c’est ce qui se trouve dans le répertoire « /etc/apache2/sites-available/ » :
$ cat /etc/apache2/sites-available/default
<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>
</VirtualHost>
Et :
$ cat /etc/apache2/sites-available/obm
<VirtualHost *:80>
ServerName obm.le-bars.net
#DocumentRoot "/var/www/obm/php"
DocumentRoot "/usr/share/obm/www/php"
ErrorLog /var/log/apache2/obm-error.log
CustomLog /var/log/apache2/obm-access.log combined
RewriteEngine on
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [L,R]
</VirtualHost>
NameVirtualHost *:443
<VirtualHost *:443>
ServerName obm.le-bars.net
#DocumentRoot "/var/www/obm/php"
DocumentRoot "/usr/share/obm/www/php"
SSLEngine ON
SSLVerifyClient none
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
ErrorLog /var/log/apache2/obm-error.log
CustomLog /var/log/apache2/obm-access.log combined
SetEnv OBM_INCLUDE_VAR obminclude
Alias /images /var/www/obm/resources
#OBM 2.2.x use utf8
#AddDefaultCharset ISO-8859-15
DirectoryIndex obm.php
Options -Indexes
php_value include_path ".:/var/www/obm/"
php_value session.bug_compat_42 0
php_value session.bug_compat_warn 0
#php_value session.gc_maxlifetime 2880
php_value magic_quotes_gpc On
#les options suivantes sont recommandées ma facultative
php_value memory_limit 128M
php_value post_max_size 10M
php_value upload_max_filesize 10M
# section nécessaire uniquement pour le synchro PDA
<Location /funambol>
ProxyPass ajp://_TOMCAT_SERVER_:8009/funambol
</Location>
# section nécessaire uniquement pour le module obm-sync
<Location /obm-sync>
ProxyPass ajp://_TOMCAT_SERVER_:8009/obm-sync
</Location>
# section nécessaire uniquement pour le webmail minig
<Location /minig>
ProxyPass ajp://_TOMCAT_SERVER_:8009/minig
</Location>
# alias /webmail/images /usr/lib/minig/images
# If you install minig on an other server,
# comment alias /webmail/images, and use
# proxyPass ajp:
#<Location /webmail/images>
#ProxyPass ajp://_TOMCAT_SERVER_Minig:8009/minig/images
#</Location>
</VirtualHost>
N’y-aurait-il pas comme une incompatibilité entre les deux ? En tout cas, il manque « default » dans « /etc/apache2/sites-enabled/ » :
$ sudo /etc/init.d/apache2 restart
Restarting web server: apache2[Wed Aug 04 00:22:57 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Wed Aug 04 00:22:57 2010] [warn] NameVirtualHost *:443 has no VirtualHosts
[Wed Aug 04 00:22:57 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Wed Aug 04 00:22:57 2010] [warn] NameVirtualHost *:443 has no VirtualHosts
failed!
Bon sang ! C’est bien là le problème : l’un gène l’autre. Bon, maintenant, la question : comment puis-je régler ce problème ? Je tente :
$ sudo a2dissite obm
Site obm disabled.
Run '/etc/init.d/apache2 reload' to activate new configuration!
$ sudo a2ensite default
Enabling site default.
Run '/etc/init.d/apache2 reload' to activate new configuration!
$ sudo /etc/init.d/apache2 reload
Reloading web server config: apache2
Cependant, aucun effet : la partie « le-bars.net/yoann/ » est toujours inaccessible. Pour l’instant, je sèche.
Si quelqu’un a une idée, surtout qu’il n’hésite pas, parce que j’ai une très forte pression pour réparer tout cela très vite (de toute urgence pour avant hier) et je suis complètement dans le flou.
À bientôt.
Le Farfadet Spatial