Russian Apache Switch to English
Switch to Russian koi8-r
windows=1251
cp-866
iso8859-5
Russian Apache Как это работает Рекоммендации Где взять Как установить Как настроить Статус и поддержка
Краткий обзор FAQ Список рассылки Благодарности Поиск по серверу Powered by Russian Apache
Russian Apache mailing list archive (apache-rus@lists.lexa.ru)

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

Re: [apache-talk] Authorization Required - ?



On Wed, 24 Oct 2001, Igor Sysoev wrote:

IS> > вместо получения стандартного "серого экрана" с сообщением от апача
IS> > Authorization Required
IS>
IS> Не проверял, но по идее, должно работать
IS> ErrorDocument   401    /some_location
IS>
IS> Причём, скорее всего, лучше перенаправлять на локальный URL, а не
IS> другой сервер.

Работать будет, разумеется. Более того, в случае 401 локальный документ
_требуется_.

apache/mod/core.html#errordocument:

Note that when you specify an ErrorDocument that points to a remote URL
(ie. anything with a method such as "http" in front of it), Apache will
send a redirect to the client to tell it where to find the document, even
if the document ends up being on the same server. This has several
implications, the most important being that the client will not receive
the original error status code, but instead will receive a redirect status
code. This in turn can confuse web robots and other clients which try to
determine if a URL is valid using the status code. In addition, if you use
a remote URL in an ErrorDocument 401, the client will not know to prompt
the user for a password since it will not receive the 401 status code.
Therefore, if you use an "ErrorDocument 401" directive then it must refer
to a local document.


 Sincerely,
D.Marck                                   [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@xxxxxxxx ***
------------------------------------------------------------------------

=============================================================================
=               Apache-Talk@xxxxxxxxxxxxx mailing list                      =
Mail "unsubscribe apache-talk" to majordomo@xxxxxxxxxxxxx if you want to quit.
=       Archive avaliable at http://www.lexa.ru/apache-talk                 =






Спонсоры сайта:

[ Russian Apache ] [ Как это работает ] [ Рекомендации ] [ Где взять ] [ Как установить ] [ Как настроить ] [ Статус и поддержка ] [ Краткий обзор ] [ FAQ ] [ Список рассылки ] [ Благодарности ] [ Поиск по серверу ] [ Powered by Russian Apache ] [ Apache-talk archive ]

"Russian Apache" includes software developed by the Apache Group for use in the Apache HTTP server project (http://www.apache.org/) See Apache LICENSE.
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C) 1997-2009 Alex Tutubalin. Design (C) 1998 Max Smolev.