Re: default page
Rasmus Skaarup <[email protected]> Wed, 29 Jan 2003 09:29:02 +0100 (CET)
| Newsgroups | gmane.comp.djb.publicfile |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 29 Jan 2003, Adrian Ho wrote:
> On Tue, Jan 28, 2003 at 06:51:09PM +0100, Rasmus Skaarup wrote:
> > This brings me to the actual problem, if publicfile gets a request
> > for a domain it doesn't have a in it't root directory it gives a 404.
> >
> > Can this be changed to display somekind of "Hosted by: Our Company" page?
>
> See <http://www.publicfile.org/> for a patch that does what you want.
Thanks, but the only patch that seemed to address my problem was a bit
overkill for what I wanted. The following change fixed my problem:
old line 130 of httpd.c:
barf("404 ",error_str(errno));
new line 130 of httpd.c
barf("200 ","<META HTTP-EQUIV=\"REFRESH\" content=\"0; \
URL=http://hostedby.ourcomp.any\">");
This directs all 404's to a hostedby-page, which was what I wanted.
Regards,
Rasmus Skaarup