Project

General

Profile

Bug #2749

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

Added by glen 9 months ago. Updated 5 months ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
mod_fastcgi
Target version:
-
Start date:
2016-08-25
Due date:
% Done:

0%

Missing in 1.5.x:

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

History

#1 Updated by glen 9 months 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
  ))
)

#2 Updated by glen 9 months 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.

#3 Updated by gstrauss 9 months 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.

#4 Updated by gstrauss 9 months ago

  • Status changed from New to Need Feedback

#5 Updated by glen 9 months 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.

#6 Updated by gstrauss 9 months ago

  • Status changed from Need Feedback to Invalid

#7 Updated by gstrauss 5 months 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)

Also available in: Atom