I can't get no authentication to work.

First, it is a real "pain", because the document says that the plaintext
authentication module is identified with the method keyword "pain" - not
"plain".

Then I only get "401 Authorization Required" whenever I ask for a page
"/nodoc" which was defined this way - accessing /doc is no problem at
the same time:

>From my modified "default" file:

#### snips #####

Directory /doc {
        Handler common
        DocumentRoot /usr/src/cherokee-0.5.5/doc/
}

Directory /nodoc {
        Handler common
        DocumentRoot /usr/src/cherokee-0.5.5/doc/
        Auth Basic, Digest {
                Method plain {
                        PasswdFile /var/plainpasswd
            }
    }
}

#### snips #####

And the password file is OK:

/ # cat /var/plainpasswd
me:me

I tested all kinds of browsers (K-Meleon, Firefox, IE-6) but they all
behave the same.

Thanks in advance for help,

Jens

P.S: From Ethereal the 401-packet in detail:

No.     Time        Source                Destination           Protocol
Info
    201 2.953059    172.17.1.1            172.17.0.62           HTTP
 HTTP/1.1 401 Authorization Required

Frame 201 (319 bytes on wire, 319 bytes captured)
Ethernet II, Src: DigitalS_1e:7e:2d (00:48:54:1e:7e:2d), Dst:
EdimaxTe_25:bc:fd (00:50:fc:25:bc:fd)
Internet Protocol, Src: 172.17.1.1 (172.17.1.1), Dst: 172.17.0.62
(172.17.0.62)
Transmission Control Protocol, Src Port: 4725 (4725), Dst Port: 1632
(1632), Seq: 1, Ack: 439, Len: 253
MS Proxy Protocol
Hypertext Transfer Protocol
    HTTP/1.1 401 Authorization Required\r\n
    Connection: Close\r\n
    Date: Wed, 13 Dec 2006 10:27:42 GMT+0\r\n
    Server: Cherokee/0.5.5 (UNIX)\r\n
    Content-Type: text/html\r\n
    Content-Length: 454
    Cache-Control: no-cache\r\n
    Pragma: no-cache\r\n
    P3P: CP=3DNOI NID CURa OUR NOR UNI\r\n
    \r\n



_______________________________________________
Cherokee mailing list
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to