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

Re: Default Apache 404 for all sites



I was told to set a script in php or perl that looks if in the directory where 
the called poage were an 404.php or 404.html file, if so include that,  
otherwise go up a level and try again, if one reach the home of the 
domain and does not find any 404 then use the default one ...
if you coded the script please send it to me .

Il 14 Jul 2003 alle 2:53, Jason Lim immise in rete:

> Hi All,
> 
> While not specifically Debian, I'm sure you guys figured this one out
> ages ago.....
> 
> In Apache, I know you can set ErrorDocument 404 /404.html or similar
> in a per-site context, but do you know if a standard one can be used
> to replace the Apache one?
> 
> That way, one wouldn't need to dump a whole bunch of 404.html files
> into each public_html, and it'd work instantly across all sites. AND
> if a user setup their own .htaccess and override the default 404, it
> would work (ie. use their own 404 page).
> 
> I was hoping there would be a way to load up a 404.html from the
> filesystem, so something like
> ErrorDocument 404 /home/default/404.html
> could be done for all sites as a default... or at least some sort of
> workaround.
> 
> Do you guys have some better method or idea, rather than copying the
> 404.html webpage into all the sites?
> 
> Thanks in advance.
> 
> Jas
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 

--
Leonardo Boselli
Nucleo Informatico e Telematico del Dipartimento Ingegneria Civile
Universita` di Firenze , V. S. Marta 3 - I-50139 Firenze
tel +39 0554796431 cell +39 3488605348 fax +39 055495333
http://www.dicea.unifi.it/~leo



Reply to: