Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

SCRIPT_NAME and PATH_INFO for root CGI scripts and Plack::Handler::CGI #147

Open
miyagawa opened this Issue · 0 comments

1 participant

@miyagawa
Owner

when you alias all of your requests, at / and anything below it, as one CGI script, Apache sets everything in the path as SCRIPT_NAME and empty "" to PATH_INFO, which is not useful for Plack::Handler::CGI to figure out what the root URL path is.

It could be "fixed" either with a complex Apache config, or by introducing middleware that swaps SCRIPT_NAME and PATH_INFO, like we do for a broken version of lighttpd with LighttpdFixScriptName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.