Welcome! Log In Create A New Profile

Advanced

Re: How to combine text and variables in fastcgi_param?

Maxim Dounin
February 23, 2014 08:52AM
Hello!

On Sun, Feb 23, 2014 at 01:59:39PM +0100, naxa wrote:

> Hello there dear nginx people,
>
> I am a beginner in nginx and also to mailing lists. :) Once read the
> docs I can't say I am sure I remember all the important parts so please
> excuse me if I am asking something silly. I'm having trouble with using
> the `value` part `fastcgi_param` of ngx_http_fastcgi. I am using nginx
> 1.2.5.
> I am trying to include four spaces between two variables. Here is an
> example in markdown. This is cross-posted at
> http://stackoverflow.com/questions/21968255
>
> The [fastcgi_param
> docs](http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_param)
> reads
>
> > A value can contain text, variables, and their combination.
>
> Does not link or specify explicitly what the text format is or what the
> combination format is.
>
> I am trying to add four spaces between two variables in order to
> understand the 'expression format' used in `fastcgi_param`. I get
> errors. Here are relevant parts from `nginx.conf` with line numbers:

Try this:

fastcgi_param SCRIPT_FILENAME "$document_root $fastcgi_script_name";

or this:

fastcgi_param SCRIPT_FILENAME '$document_root $fastcgi_script_name';

If a parameter includes special characters, the whole parameter
should be enclosed in single or double quotes.

--
Maxim Dounin
http://nginx.org/

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

How to combine text and variables in fastcgi_param?

naxa February 23, 2014 08:00AM

Re: How to combine text and variables in fastcgi_param?

Maxim Dounin February 23, 2014 08:52AM

Re: How to combine text and variables in fastcgi_param?

naxa February 24, 2014 07:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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