atom feed9 messages in ru.sysoev.nginxRe: authentication being passed to php
FromSent OnAttachments
nginx.mailinglistJul 23, 2009 2:49 am 
Igor SysoevJul 23, 2009 2:51 am 
nginx.mailinglistJul 23, 2009 3:21 am 
Igor SysoevJul 23, 2009 3:42 am 
nginx.mailinglistJul 23, 2009 3:56 am 
Igor SysoevJul 23, 2009 3:56 am 
IstvánJul 23, 2009 4:13 am 
nginx.mailinglistJul 23, 2009 4:28 am 
IstvánJul 23, 2009 5:01 am 
Subject:Re: authentication being passed to php
From:Igor Sysoev (is@rambler-co.ru)
Date:Jul 23, 2009 2:51:55 am
List:ru.sysoev.nginx

On Thu, Jul 23, 2009 at 10:50:12AM +0100, nginx.mailinglist wrote:

Hello just a quick question

in lighttpd i was able to pass the username and pass from the url to php backend

but nothing happens in nginx?

let me explain

lets say you have a URL like this

http://userX:passY@exa@

i expect my php backend to have user and pass entries in the $_SERVER variable as happens with lighttpd

am i missing something with nginx? is it even possible?

$echo userX:passY | perl -MMIME::Base64 -lne 'print encode_base64 $_' dXNlclg6cGFzc1k=

proxy_pass http://example.com/bleh.php; proxy_set_header Authorization "Basic dXNlclg6cGFzc1k=";