Need help with global variable
mike
mike503 at gmail.com
Wed Oct 29 01:39:52 MSK 2008
fastcgi_params can be set on the http {} level. i only have them defined once.
var_dump($_SERVER) on the php script. see what it says.
On Tue, Oct 28, 2008 at 3:31 PM, Jim Ohlstein <jim.ohlstein at gmail.com> wrote:
> I have that in there. Maybe I should add it to the site config file?
>
> Jim
>
>
> -----Original Message-----
> From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of mike
> Sent: Tuesday, October 28, 2008 6:19 PM
> To: nginx at sysoev.ru
> Subject: Re: Need help with global variable
>
> you'd need to set that in a fastcgi_param
>
> fastcgi_param SERVER_ADDR $server_addr;
>
> is what i have. i haven't confirmed or used it though.
>
> On Tue, Oct 28, 2008 at 3:13 PM, Jim Ohlstein <jim.ohlstein at gmail.com> wrote:
>> I am hosting a site that requires the following (according to the developer)
>> for a script license verification"
>>
>>
>>
>> "global variable available from the server."
>>
>>
>>
>> _SERVER['SERVER_ADDR']
>>
>>
>>
>>
>>
>> The best that I can understand is that they need the server's IP address to
>> be returned.
>>
>>
>>
>> "SERVER_ADDR" does not seem to be recognized by Nginx. Where do I go with
>> this?
>>
>>
>>
>>
>>
>> Jim
>
>
>
More information about the nginx
mailing list