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

-- Allows <Files *.psgi> Apache2 configuration, w/o specific "psgi_app" #615

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cade-vs
Copy link

@cade-vs cade-vs commented Mar 2, 2018

This change allows Apache2 to be configured as follows:

<Files ~ ".psgi$">
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2

@@ -144,6 +144,8 @@ sub fixup_path {
$env->{SCRIPT_NAME} = '';
} elsif ($path_info =~ s{^($location)/?}{/}) {
$env->{SCRIPT_NAME} = $1 || '';
} elsif ( $r->filename() =~ /$location/) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this match has a false positive.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be, probably begin anchor would be enough. I'll have a look at it again tomorrow.

Copy link
Author

@cade-vs cade-vs Mar 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, on second glance, no, it cannot have false positive. location is the regexp <Files> has and it seems a bit redundant here, because if we reach here, /$location/ will always match and will be correct. so I don't believe there is a problem here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any eta for merge? tnx.

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

Successfully merging this pull request may close these issues.

2 participants