Comme disait mon prof de philo : état stationnaire !
Je remet le couvert :
Merci pour vos réponses futures 🙂
chez gandi,
sous ubuntu 10.04 64bits,
avec Apache2, Php5,MySQL,
j'ai mon cv sur mon nom de domaine
www.gerd.fr
j'essaie de mettre le cv d'une copine sur mon server : pour ça j'ai le nom de domaine
www.kenavache.fr ( c'est pour des tests ! )
dans le navigateur
www.gerd.fr va bien sur /var/www/gerd/index.html
mais
www.kenavache.fr renvoie aussi à /var/www/gerd/index.html au lieu d'aller sur /var/www/kenavache/index.html
mes fichiers :
***/etc/apache2/port.conf :
NameVirtualHost *:80
Listen 80
***/etc/apache2/sites-available/gerd.fr
<VirtualHost *:80>
ServerAdmin placoplatre@numericable.fr
ServerName www.gerd.fr
ServerAlias www.gerd.fr gerd.fr
DocumentRoot /var/www/gerd
DirectoryIndex index.html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/gerd>
Options Indexes FollowSymLinks MultiViews
...
***/etc/apache2/sites-available/kenavache.fr
<VirtualHost *:80>
ServerAdmin placoplatre@numericable.fr
ServerName www.kenavache.fr
ServerAlias www.kenavache.fr kenavache.fr
DocumentRoot /var/www/kenavache
DirectoryIndex index.html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/kenavache>
Options Indexes FollowSymLinks MultiViews
...
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass /var/www/kenavache/ http://95.142.172.50:80/
ProxyPassReverse /var/www/kenavache/ http://95.142.172.50:80/
</VirtualHost>
*** dans ls -al /etc/apache2/sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 Jul 4 13:10 .
drwxr-xr-x 7 root root 4096 Jul 4 16:07 ..
lrwxrwxrwx 1 root root 26 Jul 4 13:10 gerd.fr -> ../sites-available/gerd.fr
lrwxrwxrwx 1 root root 31 Jul 4 13:10 kenavache.fr -> ../sites-available/kenavache.fr
***/etc/hosts
127.0.0.1 localhost
95.142.172.50 www.gerd.fr
95.142.172.50 www.kenavache.fr
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
# --- Gandi DHCP Script ---
95.142.172.50 server11
# --- End ---
les log :
***sudo cat 40 /var/log/apache2/other_vhosts_access.log
gerd.fr:80 127.0.0.1 - - [03/Jul/2013:17:04:06 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:25:13 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:25:13 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:28:36 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:28:36 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:28:37 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:28:37 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:28:37 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:29:23 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:29:23 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:29:23 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:29:23 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:29:23 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:38:04 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:38:04 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:38:04 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:38:04 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:12:38:04 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:13:09:22 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:13:09:22 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:13:09:22 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:13:09:22 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
www.gerd.fr:80 127.0.0.1 - - [04/Jul/2013:13:09:22 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
gerd.fr:80 127.0.0.1 - - [04/Jul/2013:13:10:06 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
gerd.fr:80 127.0.0.1 - - [04/Jul/2013:13:10:06 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
gerd.fr:80 127.0.0.1 - - [04/Jul/2013:13:10:06 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
gerd.fr:80 127.0.0.1 - - [04/Jul/2013:13:10:06 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
gerd.fr:80 127.0.0.1 - - [04/Jul/2013:13:10:06 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
**** sudo cat 40 /var/log/apache2/access.log
164.177.4.105 - - [04/Jul/2013:14:22:48 +0200] "GET /cv_icones/gear16.png HTTP/1.1" 304 188 "http://95.142.172.50/cv_ge.html" "Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0"
164.177.4.105 - - [04/Jul/2013:14:22:48 +0200] "GET /cv_icones/dossi16.png HTTP/1.1" 304 187 "http://95.142.172.50/cv_ge.html" "Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0"
127.0.0.1 - - [04/Jul/2013:14:23:04 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:23:05 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:23:06 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:23:07 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:38:11 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:38:11 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:38:11 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:38:11 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:38:11 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:50:34 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:50:34 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:50:34 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:50:34 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
127.0.0.1 - - [04/Jul/2013:14:50:34 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.2.14 (Ubuntu) (internal dummy connection)"
164.177.4.105 - - [04/Jul/2013:15:00:30 +0200] "GET /cv_ge.html HTTP/1.1" 304 212 "http://95.142.172.50/" "Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0"
164.177.4.105 - - [04/Jul/2013:15:22:18 +0200] "GET /info HTTP/1.1" 404 500 "http://www.gerd.fr/info" "Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0"
164.177.4.105 - - [04/Jul/2013:15:22:18 +0200] "GET /info/favicon.ico HTTP/1.1" 404 508 "-" "Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0"
164.177.4.105 - - [04/Jul/2013:15:22:24 +0200] "GET /info.php HTTP/1.1" 404 502 "http://www.gerd.fr/info.php" "Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0"
164.177.4.105 - - [04/Jul/2013:16:25:04 +0200] "GET /cv_ge.html HTTP/1.1" 200 3812 "http://95.142.172.50/" "Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0"
164.177.4.105 - - [04/Jul/2013:16:25:20 +0200] "GET /cv_attestations/webservices.pdf HTTP/1.1" 200 317006 "http://95.142.172.50/cv_ge.html" "Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0"
*** sudo cat 40 /var/log/apache2/error.log
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 14:38:11 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch configured -- resuming normal operations
[Thu Jul 04 14:38:16 2013] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 14:38:17 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch configured -- resuming normal operations
[Thu Jul 04 14:50:34 2013] [notice] Graceful restart requested, doing restart
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 14:50:34 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch proxy_html/3.0.1 configured -- resuming normal operations
[Thu Jul 04 14:51:02 2013] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 14:51:03 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch proxy_html/3.0.1 configured -- resuming normal operations
[Thu Jul 04 14:51:59 2013] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 14:52:00 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch proxy_html/3.0.1 configured -- resuming normal operations
[Thu Jul 04 15:00:08 2013] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 15:00:09 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch proxy_html/3.0.1 configured -- resuming normal operations
[Thu Jul 04 15:22:18 2013] [error] [client 164.177.4.105] File does not exist: /var/www/gerd/info, referer: http://www.gerd.fr/info
[Thu Jul 04 15:22:18 2013] [error] [client 164.177.4.105] File does not exist: /var/www/gerd/info
[Thu Jul 04 15:22:24 2013] [error] [client 164.177.4.105] script '/var/www/gerd/info.php' not found or unable to stat, referer: http://www.gerd.fr/info.php
[Thu Jul 04 16:13:26 2013] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 16:13:27 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch proxy_html/3.0.1 configured -- resuming normal operations
[Thu Jul 04 16:18:12 2013] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 16:18:13 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch proxy_html/3.0.1 configured -- resuming normal operations
[Thu Jul 04 16:21:32 2013] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 16:21:33 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch proxy_html/3.0.1 configured -- resuming normal operations
[Thu Jul 04 16:22:56 2013] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 16:22:58 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch proxy_html/3.0.1 configured -- resuming normal operations
[Thu Jul 04 16:24:48 2013] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Jul 04 16:24:49 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch proxy_html/3.0.1 configured -- resuming normal operations
Alors je fais appel à la communauté Ubuntu, qui est la mienne car je ne vois pas le bout de ce truc, ça fait plus d'un an que j'essaie tout dans tous les sens (avec tomcat, sans tomcat, avec mod_jk, sans mod_jk, avec mod_proxy, avec les deux vhosts dans le même fichier default ...)
Alors je sèche complet.
Le grand ordinateur m'aurait il désigné comme le grand exclu de cette belle informatique qui entoure notre planète ?