Using Variable in fastcgi_pass
Igor Sysoev
is at rambler-co.ru
Mon Oct 20 23:02:33 MSD 2008
On Mon, Oct 20, 2008 at 02:16:18PM +0200, Samuel Vogel wrote:
> I am trying to use a variable in the fastcgi_pass directive. It does not
> get parsed however.
>
> Example:
> 2008/10/20 12:09:59 [crit] 4475#0: *3 connect() to
> unix:/var/run/php-fpm/socket/$userid failed (2: No such file or
> directory) while connecting to upstream, client: 127.0.0.1, server:
> localhost, request: "GET /info.php HTTP/1.1", upstream:
> "fastcgi://unix:/var/run/php-fpm/socket/$userid:", host:
> "345232.user.domain.net"
>
> Is this not supported? It would be a really important feature to me,
> since it would enable me to not have to reload nginx periodically with a
> new config file!
No, variables are not supoorted in fastcgi_pass currently.
I will probably add them in the near future.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list