Welcome! Log In Create A New Profile

Advanced

Re: Regarding setting ENV variable

Alexandr Gomoliako
March 07, 2012 12:14PM
On 3/7/12, shivnamha <nginx-forum@nginx.us> wrote:
> Hi Friends
> I want to set a env variable on nginx with perl whenever
> i am accessing site with https only. can anyone help how i can do this.
> I looked at post env variable in nginx.conf file it didnt help me.Is
> there any way that i can set environment variable using mod_perl.

Are you sure that's what you need? You can pass $https with
fastcgi_param or access it with perl's variable method:
$r->variable('https') and set $ENV{..} accordingly.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Regarding setting ENV variable

shivnamha March 07, 2012 12:07PM

Re: Regarding setting ENV variable

Alexandr Gomoliako March 07, 2012 12:14PM

Re: Regarding setting ENV variable

shivnamha March 08, 2012 01:07AM

Re: Regarding setting ENV variable

Valentin V. Bartenev March 08, 2012 06:48AM

Re: Regarding setting ENV variable

shivnamha March 08, 2012 12:19PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
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