Bonjour à tous,
J’ai configuré Apache/2.2.22 (Debian) avec les VirtualHost Je suis sous la Debian wheezy comme ci-dessous :
NameVirtualHost 127.0.0.1:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.monsite.com
ServerAlias monsite.com/
DocumentRoot /var/www/web1/
<Directory /var/www/web1/>
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 ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
et le deuxieme
[code]<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.monsite.com
ServerAlias monsite.com/
DocumentRoot /var/www/web2/
<Directory /var/www/web2/>
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 ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Si je veux aller sur www.monsite.com/web/index.php (c’est la page info du php), c’est comme si je vais dans le répertoire web1. J’ai l’impression qu’il ne prend pas le virtualhost web2 dans site-available. Pourtant j’ai bien fait a2ensite web2
Je ne sais pas si les informations sont claires.
Merci
Cordialement,