ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА














     АРХИВ :: Apache-Talk
Apache-Talk mailing list archive (apache-talk@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@rinet.ru ***
------------------------------------------------------------------------

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



 




Copyright © Lexa Software, 1996-2009.