Re: Règle de rewrite avec apache

Pàgina inicial

Reply to this message
Autor: Dominique Fournier
Data:  
A: guilde
Assumpte: Re: Règle de rewrite avec apache


Christian Marillat wrote:
> Dominique Fournier <dominique.fournier@???> writes:
> | IndexOptions FancyIndexing NameWidth=*
> |
> | RewriteEngine on
> | RewriteCond %{HTTP_USER_AGENT} lftp [NC,OR]
> | RewriteCond %{HTTP_USER_AGENT} Wget [NC]
> | RewriteRule ^/(.*) http://ftp.sunet.se/pub/os/Linux/distributions/debian-multimedia/$1 [L,R]
> `----



Je te met le mien : il fonctionne selon ce que tu veux.
Dis moi si ca marche pour toi :
<VirtualHost *:80>
        ServerAdmin webmaster@???
        ServerName debian.fournier.homedns.org


        # Temporaire Test Marillat
        RewriteEngine on
        RewriteCond %{HTTP_USER_AGENT} lftp [NC,OR]
        RewriteCond %{HTTP_USER_AGENT} Wget [NC]
        RewriteRule ^/(.*)
http://ftp.sunet.se/pub/os/Linux/distributions/debian-multimedia/$1 [L,R]
        # Fin Temporaire Test Marillat


        DocumentRoot /home/httpd/debian/html/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/httpd/debian/html/>
                Options +Indexes
                IndexOptions FancyIndexing NameWidth=*
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>


        ErrorLog /var/log/apache2/debian.error.log


        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn


        CustomLog /var/log/apache2/debian.access.log combined
        ServerSignature Off


        Alias /icons/ "/home/httpd/debian/icons/"
        <Directory "/home/httpd/debian/icons">
            Options MultiViews
            AllowOverride None
            Order allow,deny
            Allow from all
        </Directory>
</VirtualHost>


Sur mon apache2, ca marche nickel. Tu peux meme essayer, c'est en ligne.

J'espere que ca marchera...

Dom
-- 
    __   __   ___  __
  /     /  /  /  /    Dominique Fournier
 /     /__/  /  /     CNRS / Centre Réseau et Informatique Commun
 \___ /  \ _/_  \___  Tel : 04 76 88 78 59 / Fax : 04 76 88 12 95
Certificats :  http://igc.services.cnrs.fr/Doc/General/trust.html
Site Perso  :  http://dominique.fournier.homedns.org          ;-)