Project

General

Profile

Actions

Bug #2749

closed

fastcgi.server += ( ".php" .. no longer works in 1.4.41

Added by glen over 7 years ago. Updated over 7 years ago.

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

Description

fastcgi.server += (
        ".php" => (
                "lordi" => (
                        "host" => "192.168.24.96",
                        "port" => 1028,
                        # we enable check-local so you can use server.error-handler-404 for php files too
                        "check-local" => "enable",
                ),
        ),
)

this used to work in 1.4.39

Actions #1

Updated by glen over 7 years ago

there's no breaking change recorded in wiki page:
https://redmine.lighttpd.net/projects/1/wiki/docs_modfastcgi

in fact the example given there also fails:

fastcgi.server = (
  ".php" =>
  (( "host" => "127.0.0.1",
     "port" => 1026,
      "bin-path" => "/usr/local/bin/php" 
  )),
  ".php4" =>
  (( "host" => "127.0.0.1",
     "port" => 1026
  ))
)

Actions #2

Updated by glen over 7 years ago

oh, i see error now: Duplicate array-key '.php'

# service lighttpd restart
 * Checking Lighttpd Web Server configuration......................[ FAIL ]
Duplicate array-key '.php'
2016-08-25 14:51:46: (configfile.c.1078) source: /etc/lighttpd/common/php.conf line: 73 pos: 1 parser failed somehow near here: (EOL)
2016-08-25 14:51:46: (configfile.c.1078) source: /etc/lighttpd/vhosts.d/elfride.conf line: 21 pos: 1 parser failed somehow near here: (EOL)
2016-08-25 14:51:46: (configfile.c.1078) source: for f in vhosts.d/*.conf ; do [ -f "$f" ] && echo "include \"$f\"" ; done line: 2 pos: 1 parser failed somehow near here: (EOL)
2016-08-25 14:51:46: (configfile.c.1078) source: /etc/lighttpd/lighttpd.conf line: 117 pos: 23 parser failed somehow near here: (EOL)
 * Reloading Lighttpd Web Server service...........................[ DONE ]

seems no longer possible to overwrite the config, probably should add context around the fastcgi.server declaration

so, it's likely my mistake. kill the issue if have nothing to add to this issue.

Actions #3

Updated by gstrauss over 7 years ago

To overwrite a config, you must replace it with '=', not '+='. When operating on a array, that operates on the entire array, not one entry in the array. So, no, you can not overwrite a specific extension in an existing fastcgi.server block.

You can replace the entire fastcgi.server block with all the extension you want. Yes, I realize that it can resulting in duplicating portions of config.

Actions #4

Updated by gstrauss over 7 years ago

  • Status changed from New to Need Feedback
Actions #5

Updated by glen over 7 years ago

thanks for the feedback. i just fixed my configs not to define fastcgi block twice. however i can't seem to find button to close this issue.

Actions #6

Updated by gstrauss over 7 years ago

  • Status changed from Need Feedback to Invalid
Actions #7

Updated by gstrauss over 7 years ago

  • Subject changed from fastcgi.server += ( ".php" .. no longer works in 1.4.1 to fastcgi.server += ( ".php" .. no longer works in 1.4.41
  • Category set to mod_fastcgi
  • Target version deleted (1.4.x)
Actions

Also available in: Atom