Bonjour à Tous
Debian lenny i386
bind est installé avec les paquets stables de la distribution
apache idem.
j’ai plusieurs virtualhost :
www.medica-rs.int (default)
dbmed.medica-rs.int
testingdbmed.medica-rs.int
test.medica-rs.int
dans ports.conf : NameVirtualHost 192.168.10.50:80
Listen 80
donc je pensais avoir bien configuré dans mon fichier de ma zone sur
bind chaque virtualhost
et avoir bien configuré chaque virtualhost.
Mais en testant je n’arrive que sur la page default (www.medica-rs.int ).
Je suis un peu perdu entre les lectures et les test.
Je vous demande donc votre aide. Merci d’avance.
mon fichier de zone pour bind “zone.medica-rs.int”:
mon fichier de zone inverse “zone.rev.medica-rs.int” :
Mon fichier virtualhost default “default” :
#####################################################
<VirtualHost 192.168.10.50:80>
ServerName www.medica-rs.int:80
ServerAdmin jean.ragot@medica-rs.com
ServerAlias www
DocumentRoot /var/www/
DirectoryIndex index.html index.php
AllowOverride None
Order deny, allow
Deny from all
Options FollowSymLinks
<Directory /var/www/>
Options Indexes Includes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory “/usr/lib/cgi-bin”>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
Possible values include: debug, info, notice, warn, error, crit,
alert, emerg.
LogLevel debug
CustomLog /var/log/apache2/access.log combined
ErrorLog /var/log/apache2/error.log
Alias /doc/ “/usr/share/doc/”
<Directory “/usr/share/doc/”>
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
Mon fichier virtualhost dbmed “dbmed.conf” :
#####################################################
<VirtualHost 192.168.10.50:80>
ServerName dbmed.medica-rs.int
ServerAdmin jean.ragot@medica-rs.com
ServerAlias dbmed
DocumentRoot /var/www/dbmed/
CustomLog “/var/log/apache2/dbmed_access.log” combined
ErrorLog “/var/log/apache2/dbmed_error.log”
<Directory /var/www/dbmed>
Options All
AllowOverride None
Order deny,allow
Allow from all
DirectoryIndex index.html index.php
Mon fichier virtualhost testingdbmed “testingdbmed.conf” :
#####################################################
<VirtualHost 192.168.10.50:80>
ServerName testingdbmed.medica-rs.int
ServerAdmin jean.ragot@medica-rs.com
ServerAlias testingdbmed
DocumentRoot /var/www/testingdbmed/
CustomLog “/var/log/apache2/testingdbmed_access.log” combined
ErrorLog “/var/log/apache2/testingdbmed_error.log”
<Directory /var/www/testingdbmed>
Options All
AllowOverride None
Order deny,allow
Allow from all
DirectoryIndex index.html index.php
Mon fichier virtualhost test “test.conf” :
#####################################################
<VirtualHost 192.168.10.50:80>
ServerName test.medica-rs.int
ServerAdmin jean.ragot@medica-rs.com
ServerAlias test
DocumentRoot /var/www/test/
CustomLog “/var/log/apache2/test_access.log” combined
ErrorLog “/var/log/apache2/test_error.log”
<Directory /var/www/test>
Options All
AllowOverride None
Order deny,allow
Allow from all
DirectoryIndex index.html index.php