l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 7: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2002 Jun 27 10:18

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Apache, IE, error 404
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Apache, IE, error 404



On Thu, Jun 27, 2002 at 07:22:28AM -0700, Rod Roark wrote:
> >From Apache's default httpd.conf:
> 
> # Customizable error response (Apache style)
> #  these come in three flavors
> #
> #    1) plain text
> #ErrorDocument 500 "The server made a boo boo.
> #  n.b.  the (") marks it as text, it does not get output
> #
> #    2) local redirects
> #ErrorDocument 404 /missing.html
> #  to redirect to local URL /missing.html
> #ErrorDocument 404 /cgi-bin/missing_handler.pl
> #  N.B.: You can redirect to a script or a document using server-side-includes.
> #
> #    3) external redirects
> #ErrorDocument 402 http://some.other_server.com/subscription_info.html
> #  N.B.: Many of the environment variables associated with the original
> #  request will *not* be available to such a script.
> 
> Looks like #2 is what you are mostly wanting.

Maybe I'm missing something, but I don't think that will do it.
In fact, that's what I already have.  Using a non-IE browser, go to,
for example:

  http://www.lugod.org/projects/installfests.shtml

and, perhaps, compare it to:

  http://www.lugod.org/FooBar/


So I've already got 404 errors doing magical PHP stuff.  My issue is,
they are (rightly) being transmitted as "404" responses.

IE notices this, ignores any of the actual HTML content provided by
the webserver (e.g., in the first page up there, the note saying
"You're probably looking for the installfest page: _link_"), and just
plops its crap onto the screen.


I want Apache to say "Ok, this is a 404... BUT... the requester is using
Internet Explorer, so I'll still show them the 404 error page Bill so
tirelessly created, BUT I'll just say it's an "okeydokey" response, not
a 404."


I think someone's suggestion to rewrite headers using PHP might do the
trick for me.  If so, I'll post my solution.


Now to track down a Windows box with IE to test with ;)

-bill!
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.