Plack::Middleware::IIS6ScriptNameFix(3pm)

Plack::Middleware::IIS6ScriptNameFix3pm

Fixes wrong script_name and path_info that iis6 sets

Usage

  # in your app.psgi
  use Plack::Builder;
  builder {
    enable "IIS6ScriptNameFix";
    $app;
  };
  # Or from the command line
  plackup -s FCGI -e 'enable "IIS6ScriptNameFix"' /path/to/app.psgi

Overview

This middleware fixes wrong "SCRIPT_NAME" and "PATH_INFO" set by IIS6.

Options

force

By default, this middleware checks if "SERVER_SOFTWARE" PSGI environment matches what Microsoft IIS server 6-9 would set for FastCGI. By setting "force" to true (1), this middleware always applies the fix, regardless of the "SERVER_SOFTWARE" string.

Use this option if the environment is broken similar to IIS, or if the IIS is updated and the regular expression in this module doesn't match any more e.g. you're running IIS 10.

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Authors

Florian Ragwitz

From libplack-perl 1.0051-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.