Project

General

Profile

Actions

Bug #560

closed

"bin-environment" cannot override current valu

Added by Anonymous about 18 years ago. Updated almost 8 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_fastcgi
Target version:
-
ASK QUESTIONS IN Forums:

Description

Inside mod_fastcgi settings,
if a value already exists in enviroment, "bin-environment" will fail.
example setting is following.


fastcgi.server = ( "/dj.py" => (
                      "test1" => ("host" => "127.0.0.1",
                                "port" => 1026,
                                "bin-environment" => (
                                "DJANGO_SETTINGS_MODULE" => "dj.settings",
                                "PYTHONPATH" => "/var/www" ),
                                )
                           )
                   )

This setting will not properly insert correct PYTHONPATH into environment, because PYTHONPATH already exists.


unset PYTHONPATH
/etc/init.d/lighttpd start

This will have the problem fix.
If this behavior is desired, a proper warning also should be given.

-- yejun

Actions #1

Updated by Anonymous over 17 years ago

[http:

Actions #2

Updated by stbuehler over 15 years ago

  • Status changed from New to Fixed
  • Resolution set to wontfix

Use bin-copy-environment to exclude the previous var.

Actions #3

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Wontfix
Actions #4

Updated by gstrauss about 8 years ago

  • Description updated (diff)
  • Status changed from Wontfix to Fixed
  • Target version set to 1.4.x

fixed a long time ago.

commit 6ce1dfb0d1e2be137d3f23ab1ac6f4aad9f182d3
Author: Stefan Bühler <stbuehler@web.de>
Date:   Thu Jul 31 20:45:36 2008 +0000

    mod_{fast,s}cgi: overwrite environment variables (#1722)

    git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2265 152afb58-edef-0310-8abb-c4023f1b3aa9
Actions #5

Updated by stbuehler almost 8 years ago

  • Target version deleted (1.4.x)
Actions

Also available in: Atom