Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
miyagawa opened this issue Nov 17, 2010 · 0 comments
Open

Comments

@miyagawa
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant