Welcome! Log In Create A New Profile

Advanced

Re: authentication being passed to php

July 23, 2009 05:52AM
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@example.com/bleh.php
>
>
> 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=";


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

authentication being passed to php

nginx.mailinglist July 23, 2009 05:50AM

Re: authentication being passed to php

Igor Sysoev July 23, 2009 05:52AM

Re: authentication being passed to php

nginx.mailinglist July 23, 2009 06:22AM

Re: authentication being passed to php

Igor Sysoev July 23, 2009 06:43AM

Re: authentication being passed to php

nginx.mailinglist July 23, 2009 06:57AM

Re: authentication being passed to php

Igor Sysoev July 23, 2009 06:57AM

Re: authentication being passed to php

Istv July 23, 2009 07:13AM

Re: authentication being passed to php

nginx.mailinglist July 23, 2009 07:29AM

Re: authentication being passed to php

Istv July 23, 2009 08:01AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready