ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


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


  ПРОГРАММЫ 



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












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

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

auth_module



Добрый вечер,

Прописал авторизацию на location с проксированием и все время получаю отлуп по 401-й, это у меня с руками проблемы ? с обычной location проблем не было.

           auth_basic "Restricted Zone";
           auth_basic_user_file        /usr/local/placer/.htpasswd;

debug запроса:

2005/05/04 13:40:32 [debug] 30385#0: *257313 set http keepalive handler
2005/05/04 13:40:32 [debug] 30385#0: *257313 http close request
2005/05/04 13:40:32 [debug] 30385#0: *257313 http log handler
2005/05/04 13:40:32 [debug] 30385#0: *257313 free: 094BDC90, unused: 6234
2005/05/04 13:40:32 [debug] 30385#0: *257313 event timer add: 19: 272440
2005/05/04 13:40:32 [debug] 30385#0: *257313 hc free: 00000000 0
2005/05/04 13:40:32 [debug] 30385#0: *257313 hc busy: 00000000 0
2005/05/04 13:40:32 [debug] 30385#0: *257313 http keepalive handler
2005/05/04 13:40:32 [debug] 30385#0: *257313 recv: fd:19 -1 of 2048
2005/05/04 13:40:32 [debug] 30385#0: *257313 recv() not ready (11: Resource temporarily unavailable)
2005/05/04 13:40:44 [debug] 30385#0: *257313 http keepalive handler
2005/05/04 13:40:44 [debug] 30385#0: *257313 recv: fd:19 485 of 2048
2005/05/04 13:40:44 [debug] 30385#0: *257313 malloc: 094BDC90:8192
2005/05/04 13:40:44 [debug] 30385#0: *257313 http process request line
2005/05/04 13:40:44 [debug] 30385#0: *257313 http request line: "GET /awstats/awstats.pl?config=domain.com HTTP/1.1"
2005/05/04 13:40:44 [debug] 30385#0: *257313 http uri: "/awstats/awstats.pl"
2005/05/04 13:40:44 [debug] 30385#0: *257313 http args: "config=domain.com"
2005/05/04 13:40:44 [debug] 30385#0: *257313 http exten: "pl"
2005/05/04 13:40:44 [debug] 30385#0: *257313 http process request header line 2005/05/04 13:40:44 [debug] 30385#0: *257313 http header: "Host: www.domain.com" 2005/05/04 13:40:44 [debug] 30385#0: *257313 http header: "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050429 Firefox/1.0.3" 2005/05/04 13:40:44 [debug] 30385#0: *257313 http header: "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" 2005/05/04 13:40:44 [debug] 30385#0: *257313 http header: "Accept-Language: en-us,en;q=0.5" 2005/05/04 13:40:44 [debug] 30385#0: *257313 http header: "Accept-Encoding: gzip,deflate" 2005/05/04 13:40:44 [debug] 30385#0: *257313 http header: "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"
2005/05/04 13:40:44 [debug] 30385#0: *257313 http header: "Keep-Alive: 300"
2005/05/04 13:40:44 [debug] 30385#0: *257313 http header: "Connection: keep-alive" 2005/05/04 13:40:44 [debug] 30385#0: *257313 http header: "Authorization: Basic cmFwYV1hfjp1cmlSZ2Vy"
2005/05/04 13:40:44 [debug] 30385#0: *257313 http header done
2005/05/04 13:40:44 [debug] 30385#0: *257313 server name: www.domain.com
2005/05/04 13:40:44 [debug] 30385#0: *257313 event timer del: 19: 272440
2005/05/04 13:40:44 [debug] 30385#0: *257313 http rewrite regex: "^/intranet/(.+\.(?:jpg|png|gif|jpeg|png|css|ico|txt))$" 2005/05/04 13:40:44 [notice] 30385#0: *257313 "^/intranet/(.+\.(?:jpg|png|gif|jpeg|png|css|ico|txt))$" does not match "/awstats/awstats.pl", client: 192.168.1.8, server: www.domain.com, URL: "/awstats/awstats.pl?config=domain.com", host: "www.domain.com"
2005/05/04 13:40:44 [debug] 30385#0: *257313 uri changes: 11
2005/05/04 13:40:44 [debug] 30385#0: *257313 find location
2005/05/04 13:40:44 [debug] 30385#0: *257313 find location: "/"
2005/05/04 13:40:44 [debug] 30385#0: *257313 find location: ~ "^/awstats"
2005/05/04 13:40:44 [debug] 30385#0: *257313 http cl:-1 max:10485760
2005/05/04 13:40:44 [debug] 30385#0: *257313 read: 8, BFF17EA0, 2048, 0
2005/05/04 13:40:44 [debug] 30385#0: *257313 rc: 0 user: "goodwin" salt: "ShHfDCzwPelfw"
2005/05/04 13:40:44 [debug] 30385#0: *257313 encrypted: "Sh..........."
2005/05/04 13:40:44 [debug] 30385#0: *257313 http finalize request: 401
2005/05/04 13:40:44 [debug] 30385#0: *257313 http set discard body
2005/05/04 13:40:44 [debug] 30385#0: *257313 HTTP/1.1 401 Unauthorized
Server: nginx/0.1.28
Date: Wed, 04 May 2005 17:40:44 GMT
Content-Length: 195
Content-Type: text/html
Connection: keep-alive
Keep-Alive: timeout=20
WWW-Authenticate: Basic realm="Restricted Zone"

С Уважением,
Дмитрий.

Remote Admin Service
http://remote-admin-service.encrypted-life.net

--
А ты посетил информационный портал по nginx  ? => http://www.nginx.info





 




Copyright © Lexa Software, 1996-2009.