Actions
Bug #927
closed1.5.0 not work with HTTP auth in php
ASK QUESTIONS IN Forums:
Description
Lighttpd must open http auth window, but I see white page with 200 OK
2006-12-04 12:12:49: (response.c.617) Path : /var/www/test.com/htdocs/myAdm 2006-12-04 12:12:49: (configfile-glue.c.451) 1 (cached) result: false 2006-12-04 12:12:49: (mod_indexfile.c.159) -- handling the request as Indexfile 2006-12-04 12:12:49: (mod_indexfile.c.160) URI : /myAdm/ 2006-12-04 12:12:49: (configfile-glue.c.430) === start of 1 condition block === 2006-12-04 12:12:49: (configfile-glue.c.382) HTTP["url"] ( /myAdm/index.php ) compare to \.php$ 2006-12-04 12:12:49: (configfile-glue.c.445) 1 result: true mod_proxy_core.c.1425: (error) handling it in mod_proxy_core: uri.path=/myAdm/index.php 2006-12-04 12:12:49: (response.c.628) -- subrequest finished 2006-12-04 12:12:49: (connections.c.1051) state at start 12 read-content http_resp.c.258: (trace) parsing failed: expected a number: 401 Status: 401 Unauthorized Status: 401 Unauthorized mod_proxy_core.c.1611: (trace) state: 5 (error) connections.c.1310: (trace) (error) 2006-12-04 12:12:49: (configfile-glue.c.451) 1 (cached) result: true 2006-12-04 12:12:49: (connections.c.1524) shutdown for fd 12 2006-12-04 12:12:49: (connections.c.1435) state for fd 12 close 2006-12-04 12:12:49: (connections.c.1464) connection closed for fd 12 2006-12-04 12:12:49: (connections.c.1064) state for fd 12 connect 2006-12-04 12:12:49: (connections.c.1551) state at exit: 12 connect
-- boom
Files
Updated by jakabosky about 18 years ago
I was able to get HTTP authentication to work with php and 1.5.0 See the test script I attached.
I will try to see why it is failling on header:
Status: 401 Unauthorized
Updated by jakabosky about 18 years ago
I have created a patch that will allow php to return multiple 'Status' headers.
I did some more testing and it looks like php is returning it's own 'Status' header and passing the script's 'Status' header when the 'WWW-Authenticate' header is set. So we get two 'Status' headers.
I think that is a bug in php. tested with php version 4.3.11
Updated by jakabosky almost 18 years ago
- Status changed from New to Fixed
- Resolution set to fixed
fixed committed to svn trunk
Actions
Also available in: Atom