[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[APACHE2] vhosts probleme...



Bonjours a tous

voici mon probleme:

lorsque que je fais un myweb.com sa me ramene a 192.168.0.1 pointant
dans /htdocs/default
alors qu'il existe un vhosts de myweb.com qui pointe
dans /htdocs/myweb.com

j'ai fais un stop et start, il n'y a aucune erreur d'affichier, les logs
n'affichie aucun probleme sur les vhosts ni même le domaine (local) de
myweb.com

Voici ma configuration:

cat /etc/apache2/site-enabled/000-default
-----
NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        DocumentRoot /htdocs/default

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/web/default>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

</VirtualHost>

<VirtualHost *:443>

        ServerAdmin webmaster@localhost
        DocumentRoot /htdocs/default

        SSLEngine On
        SSLCertificateFile /etc/apache2/ssl/apache.pem

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/web/default>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

</VirtualHost>
-----

cat /etc/apache2/site-enabled/001-myweb.com
------
NameVirtualHost formation-taxi.fr:80
NameVirtualHost formation-taxi.fr:443

<VirtualHost myweb.com:80>

        ServerName myweb.com
        ServerAdmin webmaster@localhost
        DocumentRoot /htdocs/myweb
        ServerAlias www.myweb.com

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /htdocs/myweb>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

</VirtualHost>

<VirtualHost myweb.com:443>

        ServerName myweb.com
        ServerAdmin webmaster@localhost
        DocumentRoot /htdocs/myweb
        ServerAlias www.myweb.com

        SSLEngine On
        SSLCertificateFile /etc/apache2/ssl/apache.pem

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /htdocs/myweb>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

</VirtualHost>
------

j'ai loader :
ls -l /etc/apache2/mods-enabled/
-----
lrwxrwxrwx  1 root root 37 2005-07-04 11:30 php4.conf
-> /etc/apache2/mods-available/php4.conf
lrwxrwxrwx  1 root root 37 2005-07-04 11:30 php4.load
-> /etc/apache2/mods-available/php4.load
lrwxrwxrwx  1 root root 36 2005-07-04 14:38 ssl.conf
-> /etc/apache2/mods-available/ssl.conf
lrwxrwxrwx  1 root root 36 2005-07-04 11:32 ssl.load
-> /etc/apache2/mods-available/ssl.load
lrwxrwxrwx  1 root root 40 2005-07-04 11:30 userdir.conf
-> /etc/apache2/mods-available/userdir.conf
lrwxrwxrwx  1 root root 40 2005-07-04 11:30 userdir.load
-> /etc/apache2/mods-available/userdir.load
lrwxrwxrwx  1 root root 44 2005-07-04 14:37 vhost_alias.load
-> /etc/apache2/mods-available/vhost_alias.load
-----



Voilà pourriez vous m'aidez a faire fonctionné le vhosts myweb.com s'il
vous plait?

merci d'avance



Reply to: