• [^] # Re: réecriture d'url réussie, mais inconvénients majeures!

    Posté par . En réponse au message apache 1.33: afficher l'url correspondant au nom de domaine ... comment?. Évalué à 1.

    Juste pour vous dire que j'ai trouvé la solution aux inconvénients dont j'ai parlé. Pour chaque site http://monSite.univ-ouaga.bf, j'ai crée un hôte virtuel dans le fichier /etc/apache2/conf.d/virtual-uo.conf

    Ainsi mon fichier /etc/apache2/conf.d/virtual-uo.conf se présente ainsi qu'il suit:

    <VirtualHost *>
    ServerAdmin webmaster@localhost
    ServerName www.univ-ouaga.bf
    # ServerAlias univ-ouaga.bf

    DocumentRoot /var/www/html/uo


    Options FollowSymLinks
    #AllowOverride None

    <Directory /var/www/html/uo>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all

    DirectoryIndex index.php

    ErrorLog /var/log/apache2/error.log
    LogLevel warn
    CustomLog /var/log/apache2/access-uo.log combined
    ServerSignature On
    </VirtualHost>


    <VirtualHost *>
    ServerAdmin webmaster@localhost
    ServerName monSite.univ-ouaga.bf
    # ServerAlias univ-ouaga.bf

    DocumentRoot /var/www/html/rep1/rep2


    Options FollowSymLinks
    #AllowOverride None

    <Directory /var/www/html/rep1/rep2>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all

    DirectoryIndex index.php index.html

    ErrorLog /var/log/apache2/error.log
    LogLevel warn
    CustomLog /var/log/apache2/access-uo.log combined
    ServerSignature On
    </VirtualHost>


    Cela signifie t'il que si j'ai 100 sites à héberger sur mon serveur web, je dois créer 100 hôtes virtuels dans mon fichier. Est ce exact? Merci