Apache na Win95 a Http autentifikace

charlie76 charlie76 na atlas.cz
Pátek Září 22 16:04:14 CEST 2000


>>
>>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\"");
>>************************************************************


VB> místo instrukce

VB> Header("HTTP/1.0 401 Unauthorized");

VB> zkuste toto:

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

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

Pokud to nahradim timto nezmeni se bohuzel vubec nic.

Pokud mu dam jenom toto: Header("Status: 401 Unauthorized");

Sice uz nehlasi chybu a dokonce se objevi okno, ktere chce prihlaseni,
ale bohuzel se nejde prihlasit.

Script bezi po win95, pokud jsou scripty ulozeny na linuxu a nebo
nekde na fyzickym serveru, ale ne kdyz mam instalovan server na
lokalnim pocitaci:(

Nezkusil by jeste nekdo neco?

Bezradny Mira


>>
>> Odpovi mi Apache toto:
>>
>>************************************************************
>>Internal Server Error
>>The server encountered an internal error or misconfiguration and was unable
VB> to complete your request.
>>Please contact the server administrator, you na your.address and inform them
VB> of the time the error occurred, and anything you might have done that may
VB> have caused the error.
>>
>>More information about this error may be available in the server error log.
>>---------------------------------------------------------------------------
VB> -----
>>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.
>>




Další informace o konferenci Linux