httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauricio Bracale <>
Subject RES: Personalized ErrorDocument for mod_vhosts
Date Wed, 14 Aug 2002 19:30:01 GMT
    I´ve tried already. First I´ve tried .htaccess with "Alias", end put
ErrorDocument to search into /errorpages: 
                Alias /errorpages /home/vhosts/domain/htdocs
                But did´t work, the error log said:
"/home/vhosts/domain/htdocs/.htaccess: Alias not allowed here"
    Then I´ve tried with ErrorDocument inside .htaccess:
                ErrorDocument 404    404.html  and tried also
                ErrorDocument 404    ./404.html  and
                ErrorDocument 404    /home/vhosts/domain/htdocs/404.html
                But did´t work too, the error log said:
"/home/vhosts/domain/htdocs/.htaccess: ErrorDocument not allowed here"
    I was trying to use mod_rewrite, and created a rule, but this rule enter
in loop:
                RewriteCond %{HTTP_HOST}  ([a-z0-9]+)\.domain\.com\.br
                RewriteCond %{REQUEST_URI} !-f
                RewriteRule ^/(.*)$ http://%0/404.html <http://%0/404.html>
                Tried also
                RewriteCond %{HTTP_HOST}  ([a-z0-9]+)\.domain\.com\.br
                RewriteCond %{REQUEST_URI} !-U
                RewriteRule ^/(.*)$ http://%0/404.html <http://%0/404.html>
                But in this case, the rule don´t redirect to the error page.
                Any other ideas??
 -----Mensagem original-----
De: Matthijs Rohs []
Enviada em: terça-feira, 13 de agosto de 2002 19:16
Assunto: RE: Personalized ErrorDocument for mod_vhosts

Use a .htaccess in each sitemap containing:


ErrorDocument 404 "Client Error 404: Not Found


Or this:


ErrorDocument 404 /error/404.php




-----Oorspronkelijk bericht-----
Van: Mauricio Bracale [] 
Verzonden: dinsdag 13 augustus 2002 21:20
Onderwerp: Personalized ErrorDocument for mod_vhosts




    I have a apache 1.3.26 running with mod_vhosts, and a lot of virtual
sites. Now they want a personalized 404 Error Page for each site, but I
did´t now how to do it using mod_vhosts.    

    Can anybody help me?






Mauricio Bracale

Cidade Internet - Grupo CLARIN <> 

Tel: 3365-4117

Analista de Suporte


View raw message