Apache na Win95 a Http autentifikace

Vladimír Beneš Vladimir.Benes na pvt.cz
Pátek Září 22 08:17:20 CEST 2000


Dobrý den,

-----Původní zpráva-----
Od: charlie76 <charlie76 na atlas.cz>
Komu: linux na linux.cz - konference <linux na linux.cz>
Datum: 21. září 2000 21:09
Předmět: Apache na Win95 a Http autentifikace


> Dobry den,
>
>na win95 mam nainstalovane
> apache_1_3_12_win32.exe
> php-3.0.16-win32.zip
> a
> mysql-3.23.24-beta-win.zip
>
>Pokud v php3 scriptu poslu tuto hlavicku:
>
>************************************************************
> Header("HTTP/1.0 401 Unauthorized");
> Header("WWW-Authenticate: Basic realm=\"Jmeno\"");
>************************************************************


místo instrukce

Header("HTTP/1.0 401 Unauthorized");

zkuste toto:

  if (Ereg("Microsoft", $SERVER_SOFTWARE)):
     Header("Status: 401 Unauthorized");
  else:
     Header("HTTP/1.0 401 Unauthorized");
  endif;

...a mělo by to chodit jak v M$ tak i na normálních OS.

>
> Odpovi mi Apache toto:
>
>************************************************************
>Internal Server Error
>The server encountered an internal error or misconfiguration and was unable
to complete your request.
>Please contact the server administrator, you na your.address and inform them
of the time the error occurred, and anything you might have done that may
have caused the error.
>
>More information about this error may be available in the server error log.
>---------------------------------------------------------------------------
-----
>Apache/1.3.12 Server at bla.bla.cz Port 80
>************************************************************
>
>Pokusil by se mi prosim nekdo poradit?
>
>Scripty ve kterych posilam tuto hlavicku mi na linuxu i na webu
>funguji normalne.
>


        S pozdravem V. Beneš



Další informace o konferenci Linux