X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine%2FFastCGI.pm;h=3764bc4f19cf2281eac83bb33223c52f2d1532c6;hb=0c913601ac4ab28c5ffc5b7adb1833b99ac07459;hp=85dee5261a2c20aa83371a729acf0e6f4701f59d;hpb=ae29b412955743885e80350085167b54b69672da;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine/FastCGI.pm b/lib/Catalyst/Engine/FastCGI.pm index 85dee52..3764bc4 100644 --- a/lib/Catalyst/Engine/FastCGI.pm +++ b/lib/Catalyst/Engine/FastCGI.pm @@ -220,6 +220,12 @@ sub _fix_env my $self = shift; my $env = shift; + # we are gonna add variables from current system environment %ENV to %env + # that contains at this moment just variables taken from FastCGI request + foreach my $k (keys(%ENV)) { + $env->{$k} = $ENV{$k} unless defined($env->{$k}); + } + return unless ( $env->{SERVER_SOFTWARE} ); # If we're running under Lighttpd, swap PATH_INFO and SCRIPT_NAME @@ -297,9 +303,9 @@ static, and dynamic. The FastCgiExternalServer directive tells Apache that when serving /tmp/myapp to use the FastCGI application listenting on the socket -/tmp/mapp.socket. Note that /tmp/myapp.fcgi does not need to exist -- +/tmp/mapp.socket. Note that /tmp/myapp.fcgi B exist -- it's a virtual file name. With some versions of C or -C, you can use any name you like, but most require that the +C, you can use any name you like, but some require that the virtual filename end in C<.fcgi>. It's likely that Apache is not configured to serve files in /tmp, so the